Merge pull request #967 from lou-lan/fix/clean-code

Clean code (Condition is always 'false' because 'err' is always 'nil' ).
This commit is contained in:
Tejal Desai 2020-01-14 13:26:10 -08:00 committed by GitHub
commit b5c3d95d8e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 4 deletions

View File

@ -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...)
}