Clean code (Condition is always 'false' because 'err' is always 'nil' ).
This commit is contained in:
parent
464ac134f5
commit
da0e7c7bdc
|
|
@ -123,10 +123,6 @@ func remoteImage(image string, opts *config.KanikoOptions) (v1.Image, error) {
|
||||||
}
|
}
|
||||||
|
|
||||||
rOpts := remoteOptions(registryName, opts)
|
rOpts := remoteOptions(registryName, opts)
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
|
|
||||||
return remote.Image(ref, rOpts...)
|
return remote.Image(ref, rOpts...)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue