Skip to content

Commit eccb60a

Browse files
otaviofqu1queee
andauthored
Apply suggestions from code review
Co-authored-by: Enrique Encalada <[email protected]>
1 parent 7082c9e commit eccb60a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pkg/validate/trigger.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ func (t *Trigger) validate(triggerWhen []build.TriggerWhen) []error {
9696
default:
9797
t.build.Status.Reason = build.BuildReasonPtr(build.TriggersInvalidType)
9898
t.build.Status.Message = pointer.String(
99-
fmt.Sprintf("%q contains a invalid type %q", when.Name, when.Type))
99+
fmt.Sprintf("%q contains an invalid type %q", when.Name, when.Type))
100100
allErrs = append(allErrs, fmt.Errorf("%s", *t.build.Status.Message))
101101
}
102102
}

pkg/validate/validate.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ func BuildRunFields(buildRun *build.BuildRun) (string, string) {
123123

124124
if buildRun.Spec.BuildSpec.Trigger != nil {
125125
return resources.BuildRunBuildFieldOverrideForbidden,
126-
"cannot use 'triggers' override in the 'BuildRun', it allowed in the 'Build'"
126+
"cannot use 'triggers' override in the 'BuildRun', only allowed in the 'Build'"
127127
}
128128
}
129129

0 commit comments

Comments
 (0)