Skip to content

Commit

Permalink
Merge pull request #2165 from wuare/chore/optimize-code
Browse files Browse the repository at this point in the history
chore: optimize code
  • Loading branch information
hazendaz committed Jan 22, 2021
2 parents 260dba8 + 239cdae commit 55436a4
Showing 1 changed file with 3 additions and 4 deletions.
Expand Up @@ -396,12 +396,11 @@ private void mapperElement(XNode parent) throws Exception {
private boolean isSpecifiedEnvironment(String id) {
if (environment == null) {
throw new BuilderException("No environment specified.");
} else if (id == null) {
}
if (id == null) {
throw new BuilderException("Environment requires an id attribute.");
} else if (environment.equals(id)) {
return true;
}
return false;
return environment.equals(id);
}

}

0 comments on commit 55436a4

Please sign in to comment.