Skip to content

Commit f26765c

Browse files
committed
update golangci-lint to v2.1.1
Fixes three new issues found by nilnesserr. Signed-off-by: Paul Holzinger <[email protected]>
1 parent f64204f commit f26765c

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ BUILDTAGS += ${EXTRA_BUILDTAGS}
6161
# N/B: This value is managed by Renovate, manual changes are
6262
# possible, as long as they don't disturb the formatting
6363
# (i.e. DO NOT ADD A 'v' prefix!)
64-
GOLANGCI_LINT_VERSION := 2.0.2
64+
GOLANGCI_LINT_VERSION := 2.1.1
6565
PYTHON ?= $(shell command -v python3 python|head -n1)
6666
PKG_MANAGER ?= $(shell command -v dnf yum|head -n1)
6767
# ~/.local/bin is not in PATH on all systems

pkg/api/handlers/compat/events.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ func GetEvents(w http.ResponseWriter, r *http.Request) {
8585
return
8686
}
8787
if evt.Error != nil {
88-
logrus.Errorf("Unable to read event: %q", err)
88+
logrus.Errorf("Unable to read event: %q", evt.Error)
8989
continue
9090
}
9191
if evt.Event == nil {

pkg/api/handlers/libpod/pods.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ func PodStop(w http.ResponseWriter, r *http.Request) {
167167
responses, stopError = pod.Stop(r.Context(), false)
168168
}
169169
if stopError != nil && !errors.Is(stopError, define.ErrPodPartialFail) {
170-
utils.Error(w, http.StatusInternalServerError, err)
170+
utils.Error(w, http.StatusInternalServerError, stopError)
171171
return
172172
}
173173
// Try to clean up the pod - but only warn on failure, it's nonfatal.

pkg/bindings/manifests/manifests.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -431,7 +431,7 @@ func Modify(ctx context.Context, name string, images []string, options *ModifyOp
431431

432432
artifactWriterGroup.Wait()
433433
if artifactWriterError != nil {
434-
return "", fmt.Errorf("uploading artifacts: %w", err)
434+
return "", fmt.Errorf("uploading artifacts: %w", artifactWriterError)
435435
}
436436

437437
data, err := io.ReadAll(response.Body)

0 commit comments

Comments
 (0)