Skip to content

Commit

Permalink
Merge pull request #16746 from hakman/dependencies/update-1723183478
Browse files Browse the repository at this point in the history
Fix verify-golangci-lint
  • Loading branch information
k8s-ci-robot authored Aug 9, 2024
2 parents 2a1f1f2 + 689462a commit 2b39cbe
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion cmd/kops/create_cluster_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ func checkParse(t *testing.T, s string, expect map[string]string, shouldErr bool
if shouldErr {
return
}
t.Errorf(err.Error())
t.Errorf("%s", err.Error())
}

for k, v := range expect {
Expand Down
2 changes: 1 addition & 1 deletion pkg/k8scodecs/codecs_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ func TestToVersionedYaml(t *testing.T) {
actual = strings.TrimSpace(actual)
expected := strings.TrimSpace(g.expected)
if actual != expected {
t.Logf(diff.FormatDiff(actual, expected))
t.Log(diff.FormatDiff(actual, expected))
t.Errorf("actual != expected")
continue
}
Expand Down
4 changes: 2 additions & 2 deletions pkg/kopscodecs/codecs_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ func TestToVersionedYaml(t *testing.T) {
actual = strings.TrimSpace(actual)
expected := strings.TrimSpace(g.expected)
if actual != expected {
t.Logf(diff.FormatDiff(actual, expected))
t.Log(diff.FormatDiff(actual, expected))
t.Errorf("actual != expected")
continue
}
Expand Down Expand Up @@ -102,7 +102,7 @@ func TestToVersionedJSON(t *testing.T) {
actual := string(actualBytes)
actual = strings.TrimSpace(actual)
if actual != g.expected {
t.Logf(diff.FormatDiff(actual, g.expected))
t.Log(diff.FormatDiff(actual, g.expected))
t.Errorf("actual != expected")
continue
}
Expand Down
4 changes: 2 additions & 2 deletions upup/pkg/fi/cloudup/gcetasks/instancetemplate.go
Original file line number Diff line number Diff line change
Expand Up @@ -441,8 +441,8 @@ func matches(l, r *compute.InstanceTemplate) bool {
if klog.V(10).Enabled() {
ls := fi.DebugAsJsonStringIndent(normalizedL)
rs := fi.DebugAsJsonStringIndent(normalizedR)
klog.V(10).Infof("Not equal")
klog.V(10).Infof(diff.FormatDiff(ls, rs))
klog.V(10).Info("Not equal")
klog.V(10).Info(diff.FormatDiff(ls, rs))
}
return false
}
Expand Down
2 changes: 1 addition & 1 deletion upup/pkg/fi/cloudup/scaleway/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ func CreateValidScalewayProfile() (*scw.Profile, error) {
} else {
errMsg += " in a Scaleway profile or as an environment variable"
}
return nil, fmt.Errorf(errMsg)
return nil, fmt.Errorf("%s", errMsg)
}

return &profile, nil
Expand Down
2 changes: 1 addition & 1 deletion upup/pkg/fi/executor.go
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ func (e *executor[T]) RunTasks(ctx context.Context, taskMap map[string]Task[T])
if err != nil {
// print warning message and continue like the task succeeded
if _, ok := err.(*ExistsAndWarnIfChangesError); ok {
klog.Warningf(err.Error())
klog.Warning(err.Error())
ts.done = true
ts.lastError = nil
progress = true
Expand Down

0 comments on commit 2b39cbe

Please sign in to comment.