Skip to content

Commit

Permalink
Merge pull request #498 from avranju/fix-if
Browse files Browse the repository at this point in the history
Fix for returning wrong variable as documented in http://git.io/vstk3
  • Loading branch information
Jianghao Lu committed Aug 19, 2015
2 parents d793917 + 7c249d9 commit eaa5491
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ protected static String generateRandomName(String prefix) {

protected static String getInput(String envName, String defaultValue) {
String val = System.getenv(envName);
return (val == null || val.trim().isEmpty()) ? defaultValue : envName;
return (val == null || val.trim().isEmpty()) ? defaultValue : val;
}

/**
Expand Down

0 comments on commit eaa5491

Please sign in to comment.