Skip to content

Commit

Permalink
[java] Deleting redundant checks
Browse files Browse the repository at this point in the history
  • Loading branch information
barancev committed May 7, 2018
1 parent f69fc04 commit 2e76dd0
Showing 1 changed file with 3 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public GridNodeCliOptions parse(String[] args) {
}

private IDefaultProvider defaults(String json) {
Map<String, Object> map = (Map<String, Object>) new Json().toType(json, Map.class);
Map<String, Object> map = new Json().toType(json, Map.class);
map.remove("custom");
map.remove("capabilities");
map.remove("servlets");
Expand Down Expand Up @@ -219,12 +219,8 @@ public GridNodeConfiguration toConfiguration() {
configuration.hubPort = null;
} else if (hubHost != null && hubPort != null) {
configuration.hub = null;
if (hubHost != null) {
configuration.hubHost = hubHost;
}
if (hubPort != null) {
configuration.hubPort = hubPort;
}
configuration.hubHost = hubHost;
configuration.hubPort = hubPort;
}
if (configFile != null) {
configuration.nodeConfigFile = configFile;
Expand Down

0 comments on commit 2e76dd0

Please sign in to comment.