Skip to content

Commit

Permalink
0001957: Redundant condition in AbstractParameterService.getString
Browse files Browse the repository at this point in the history
  • Loading branch information
erilong committed Apr 23, 2019
1 parent 431beb4 commit 60e2778
Showing 1 changed file with 1 addition and 6 deletions.
Expand Up @@ -125,12 +125,7 @@ public long getLong(String key, long defaultVal) {
}

public String getString(String key, String defaultVal) {
String value = null;

if (StringUtils.isBlank(value)) {
value = getParameters().get(key, defaultVal);
}

String value = getParameters().get(key, defaultVal);
return StringUtils.isBlank(value) ? defaultVal : value;
}

Expand Down

0 comments on commit 60e2778

Please sign in to comment.