Skip to content

Commit

Permalink
Fix verify-golangci-lint
Browse files Browse the repository at this point in the history
  • Loading branch information
hakman committed Aug 9, 2024
1 parent 9f0d3fe commit 9631f65
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
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 9631f65

Please sign in to comment.