Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
gboissinot committed Feb 3, 2013
1 parent e0585e4 commit 6c20276
Showing 1 changed file with 2 additions and 3 deletions.
Expand Up @@ -48,15 +48,14 @@ public void overrideAll(Map<String, String> all) {
@SuppressWarnings({"unused", "unchecked"})
public Map<String, String> getEnvMap() {
if (envMap == null) {

//Try to fill the envMap from the build injected environment
//file (injectedEnvVars.txt by default).
try {
envMap = getEnvironment(build);
Map<String, String> result = getEnvironment(build);
return result == null ? null : UnmodifiableMap.decorate(result);
} catch (EnvInjectException e) {
return null;
}
return envMap;
}

return UnmodifiableMap.decorate(envMap);
Expand Down

0 comments on commit 6c20276

Please sign in to comment.