File tree Expand file tree Collapse file tree
src/main/java/com/github/dockerjava/core Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -50,7 +50,7 @@ void addAuthConfig(AuthConfig config) {
5050 }
5151
5252 @ CheckForNull
53- public AuthConfig resolveAuthConfig (@ Nonnull String hostname ) {
53+ public AuthConfig resolveAuthConfig (@ CheckForNull String hostname ) {
5454 if (StringUtils .isEmpty (hostname ) || AuthConfig .DEFAULT_SERVER_ADDRESS .equals (hostname )) {
5555 return auths .get (AuthConfig .DEFAULT_SERVER_ADDRESS );
5656 }
@@ -124,10 +124,8 @@ public static DockerConfigFile loadConfig(@CheckForNull String dockerConfigPath)
124124 return new DockerConfigFile ();
125125 }
126126
127- DockerConfigFile dockerConfig ;
128-
129127 //parse new docker config file format
130- dockerConfig = loadCurrentConfig (dockerConfigPath );
128+ DockerConfigFile dockerConfig = loadCurrentConfig (dockerConfigPath );
131129
132130 //parse old auth config file format
133131 if (dockerConfig == null ) {
You can’t perform that action at this time.
0 commit comments