Remove useless and duplicate call.
This commit is contained in:
parent
6db42eda4e
commit
0962b86ce3
@ -51,7 +51,6 @@ func ReadDockerConfigFile() (cfg DockerConfig, err error) {
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
glog.Errorf("while trying to canonicalize %s: %v", dockerConfigFileLocation, err)
|
glog.Errorf("while trying to canonicalize %s: %v", dockerConfigFileLocation, err)
|
||||||
}
|
}
|
||||||
absDockerConfigFileLocation, err = filepath.Abs(dockerConfigFileLocation)
|
|
||||||
glog.V(2).Infof("looking for .dockercfg at %s", absDockerConfigFileLocation)
|
glog.V(2).Infof("looking for .dockercfg at %s", absDockerConfigFileLocation)
|
||||||
contents, err := ioutil.ReadFile(absDockerConfigFileLocation)
|
contents, err := ioutil.ReadFile(absDockerConfigFileLocation)
|
||||||
if os.IsNotExist(err) {
|
if os.IsNotExist(err) {
|
||||||
|
Loading…
Reference in New Issue
Block a user