Skip to content

Commit

Permalink
Fix typo (#656)
Browse files Browse the repository at this point in the history
* Fix typo to unknown

* Fix typo to because

* Fix typo to different
  • Loading branch information
kitasuke authored and godrei committed Mar 12, 2019
1 parent 9f6bd38 commit 43453e3
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions bitrise/print.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ func getTrimmedStepName(stepRunResult models.StepRunResultsModel) string {
}
break
default:
log.Errorf("Unkown result code")
log.Errorf("Unknown result code")
return ""
}

Expand Down Expand Up @@ -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 ""
}

Expand Down
2 changes: 1 addition & 1 deletion bitrise/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions bitrise/util_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion cli/run_util.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down
2 changes: 1 addition & 1 deletion models/models.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ const (
// TriggerEventTypeTag ...
TriggerEventTypeTag TriggerEventType = "tag"
// TriggerEventTypeUnknown ...
TriggerEventTypeUnknown TriggerEventType = "unkown"
TriggerEventTypeUnknown TriggerEventType = "unknown"
)

// TriggerMapItemModel ...
Expand Down

0 comments on commit 43453e3

Please sign in to comment.