Skip to content

Commit

Permalink
Remove unnecessary null check.
Browse files Browse the repository at this point in the history
  • Loading branch information
ralf0131 committed May 9, 2018
1 parent 628f7e4 commit 51e2e80
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ private static void putRandomPort(String protocol, Integer port) {
}

public URL toUrl() {
return urls == null || urls.isEmpty() ? null : urls.iterator().next();
return urls.isEmpty() ? null : urls.iterator().next();
}

public List<URL> toUrls() {
Expand Down

0 comments on commit 51e2e80

Please sign in to comment.