Skip to content

Commit becddbe

Browse files
committed
image: fix new staticcheck lint issue
This was uncovered by the gofumpt changes it seems. Signed-off-by: Paul Holzinger <[email protected]>
1 parent 868c6ce commit becddbe

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

image/docker/daemon/daemon_dest.go

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,7 @@ func newImageDestination(ctx context.Context, sys *types.SystemContext, ref daem
3838
return nil, fmt.Errorf("Invalid destination docker-daemon:%s: a destination must be a name:tag", ref.StringWithinTransport())
3939
}
4040

41-
mustMatchRuntimeOS := true
42-
if sys != nil && sys.DockerDaemonHost != client.DefaultDockerHost {
43-
mustMatchRuntimeOS = false
44-
}
41+
mustMatchRuntimeOS := sys == nil || sys.DockerDaemonHost == client.DefaultDockerHost
4542

4643
c, err := newDockerClient(sys)
4744
if err != nil {

0 commit comments

Comments
 (0)