diff --git a/bitrise/print.go b/bitrise/print.go index 539e381b9..e1b1cb6b0 100644 --- a/bitrise/print.go +++ b/bitrise/print.go @@ -72,7 +72,7 @@ func getTrimmedStepName(stepRunResult models.StepRunResultsModel) string { } break default: - log.Errorf("Unkown result code") + log.Errorf("Unknown result code") return "" } @@ -231,7 +231,7 @@ func getRunningStepFooterMainSection(stepRunResult models.StepRunResultsModel) s coloringFunc = colorstring.Blue break default: - log.Errorf("Unkown result code") + log.Errorf("Unknown result code") return "" } diff --git a/bitrise/util.go b/bitrise/util.go index 2b82dd907..86c92bd1c 100644 --- a/bitrise/util.go +++ b/bitrise/util.go @@ -431,7 +431,7 @@ func removeStepDefaultsAndFillStepOutputs(stepListItem *models.StepListItemModel return err } } else { - return errors.New("Failed to fill step ouputs: unkown SteplibSource") + return errors.New("Failed to fill step ouputs: unknown SteplibSource") } // Fill outputs diff --git a/bitrise/util_test.go b/bitrise/util_test.go index 084326785..bf0b180f8 100644 --- a/bitrise/util_test.go +++ b/bitrise/util_test.go @@ -186,12 +186,12 @@ func TestRemoveConfigRedundantFieldsAndFillStepOutputs(t *testing.T) { opts, err := input.GetOptions() require.Equal(t, nil, err) - // script content should keep is_expand: true, becouse it's diffenet from spec default + // script content should keep is_expand: true, because it's different from spec default require.Equal(t, true, *opts.IsExpand) } } } else if stepID == "timestamp" { - // timestamp title should be nil, becouse it's the same as spec value + // timestamp title should be nil, because it's the same as spec value require.Equal(t, (*string)(nil), step.Title) for _, output := range step.Outputs { diff --git a/cli/run_util.go b/cli/run_util.go index 0f93d2346..6258f1bc1 100644 --- a/cli/run_util.go +++ b/cli/run_util.go @@ -600,7 +600,7 @@ func activateAndRunSteps( buildRunResults.SkippedSteps = append(buildRunResults.SkippedSteps, stepResults) break default: - log.Error("Unkown result code") + log.Error("Unknown result code") return } diff --git a/models/models.go b/models/models.go index 206d67a34..927e8b0d1 100644 --- a/models/models.go +++ b/models/models.go @@ -57,7 +57,7 @@ const ( // TriggerEventTypeTag ... TriggerEventTypeTag TriggerEventType = "tag" // TriggerEventTypeUnknown ... - TriggerEventTypeUnknown TriggerEventType = "unkown" + TriggerEventTypeUnknown TriggerEventType = "unknown" ) // TriggerMapItemModel ...