Skip to content

Commit

Permalink
Fix issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Vitaliy Yasenenko committed Oct 18, 2018
1 parent 82c3814 commit 1ef2286
Showing 1 changed file with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -205,16 +205,15 @@ public HubProxy createHubProxy(String hubName) {
throw new IllegalArgumentException("hubName cannot be null");
}

String hubNameLower = hubName.toLowerCase(Locale.getDefault());

log("Creating hub proxy: " + hubNameLower, LogLevel.Information);
log("Creating hub proxy: " + hubName, LogLevel.Information);

HubProxy proxy = null;
if (mHubs.containsKey(hubNameLower)) {
proxy = mHubs.get(hubNameLower);
if (mHubs.containsKey(hubName)) {
proxy = mHubs.get(hubName);
} else {
proxy = new HubProxy(this, hubName, getLogger());
mHubs.put(hubNameLower, proxy);
mHubs.put(hubName, proxy);
}

return proxy;
Expand Down

0 comments on commit 1ef2286

Please sign in to comment.