Skip to content

Commit f28b588

Browse files
davdhacsclaude
authored andcommitted
fix: address errcheck lint for ctrdClient.Close
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 19f548a commit f28b588

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ func Run(logger *slog.Logger, criSocketPath string, dockerConfigJSONPath string,
4646
if err != nil {
4747
logger.Warn("failed to create containerd client for image pinning, images may be GC'd", "error", err)
4848
} else {
49-
defer ctrdClient.Close()
49+
defer func() { _ = ctrdClient.Close() }()
5050
}
5151

5252
if err := listImagesForDebugging(ctx, logger, criClient, timing.ImageListTimeout, "before"); err != nil {

0 commit comments

Comments
 (0)