Skip to content
This repository has been archived by the owner on Mar 21, 2022. It is now read-only.

Commit

Permalink
fix Findbugs warning in RegistryConfigs
Browse files Browse the repository at this point in the history
  • Loading branch information
mattnworb committed May 23, 2017
1 parent d5cffbc commit adf8d21
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,9 @@ public static RegistryConfigs create(final Map<String, RegistryAuth> configs) {
new Maps.EntryTransformer<String, RegistryAuth, RegistryAuth>() {
@Override
public RegistryAuth transformEntry(final String key, final RegistryAuth value) {
if (value == null) {
return null;
}
if (value.serverAddress() == null) {
return value.toBuilder()
.serverAddress(key)
Expand Down

0 comments on commit adf8d21

Please sign in to comment.