Skip to content

Commit

Permalink
fix linter error
Browse files Browse the repository at this point in the history
  • Loading branch information
Minyi Zhong committed Jan 20, 2025
1 parent 92b795b commit 424f027
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ func (t *CycleNodeRequestTransitioner) transitionUndefined() (reconcile.Result,
validationErrors := validation.IsDNS1035Label(t.cycleNodeRequest.Name)

if len(validationErrors) > 0 {
return t.transitionToFailed(fmt.Errorf(strings.Join(validationErrors, ",")))
return t.transitionToFailed(fmt.Errorf("%s", strings.Join(validationErrors, ",")))
}

// Transition the object to pending
Expand Down
2 changes: 1 addition & 1 deletion pkg/controller/cyclenodestatus/transitioner/transitions.go
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ func (t *CycleNodeStatusTransitioner) transitionDraining() (reconcile.Result, er
// Fail with all of the combined encountered errors if we got any. If we failed inside the loop we would
// potentially miss some important information in the logs.
if len(unexpectedErrors) > 0 {
return t.transitionToFailed(fmt.Errorf(strings.Join(unexpectedErrors, "\n")))
return t.transitionToFailed(fmt.Errorf("%s", strings.Join(unexpectedErrors, "\n")))
}
// No serious errors were encountered. If we're done, move on.
if finished {
Expand Down

0 comments on commit 424f027

Please sign in to comment.