Skip to content

Commit

Permalink
Merge pull request #967 from lou-lan/fix/clean-code
Browse files Browse the repository at this point in the history
Clean code (Condition is always 'false' because 'err' is always 'nil' ).
  • Loading branch information
tejal29 authored Jan 14, 2020
2 parents aecc915 + da0e7c7 commit b5c3d95
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions pkg/util/image_util.go
Original file line number Diff line number Diff line change
Expand Up @@ -123,10 +123,6 @@ func remoteImage(image string, opts *config.KanikoOptions) (v1.Image, error) {
}

rOpts := remoteOptions(registryName, opts)
if err != nil {
return nil, err
}

return remote.Image(ref, rOpts...)
}

Expand Down

0 comments on commit b5c3d95

Please sign in to comment.