Signed-off-by: FogDong <dongtianxin.tx@alibaba-inc.com>
This commit is contained in:
FogDong
2022-10-25 14:43:29 +08:00
parent 81616ffd89
commit d491c6c8cf
2 changed files with 2 additions and 4 deletions
+1 -3
View File
@@ -261,9 +261,7 @@ func wrapStepName(step workflowv1alpha1.StepStatus) string {
}
func unwrapStepName(step string) string {
if strings.HasPrefix(step, " ") {
step = step[2:]
}
step = strings.TrimPrefix(step, " ")
switch {
case strings.HasPrefix(step, emojiSucceed):
return strings.TrimPrefix(step, emojiSucceed)
+1 -1
View File
@@ -461,7 +461,7 @@ func (w *WorkflowArgs) selectWorkflowStep() error {
}
}
if len(stepsKey) == 0 {
return fmt.Errorf("Workflow is not start")
return fmt.Errorf("workflow is not start")
}
prompt := &survey.Select{