Skip to content

Commit

Permalink
Remove unnecessary casting
Browse files Browse the repository at this point in the history
  • Loading branch information
kinow committed Oct 10, 2024
1 parent fedb11e commit 8f8eab6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/org/biouno/unochoice/model/GroovyScript.java
Original file line number Diff line number Diff line change
Expand Up @@ -167,10 +167,10 @@ public Object eval(Map<String, String> parameters) throws RuntimeException {
// @SuppressWarnings("unchecked")
final Map<String, String> envVars = System.getenv();
for (Entry<String, String> parameter : parameters.entrySet()) {
Object value = parameter.getValue();
String value = parameter.getValue();
if (value != null) {
if (value instanceof String) {
value = Util.replaceMacro((String) value, envVars);
value = Util.replaceMacro(value, envVars);
}
context.setVariable(parameter.getKey(), value);
}
Expand Down

0 comments on commit 8f8eab6

Please sign in to comment.