Skip to content

Commit

Permalink
Simplify stream expression
Browse files Browse the repository at this point in the history
  • Loading branch information
jacwah committed Sep 7, 2015
1 parent a99b451 commit 7948155
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -189,7 +189,7 @@ class EffectDelegate {
}
}
// No [brackets] around resources
def resStr = String.join(", ", resources.stream().map({it.toString()}).collect(Collectors.toList()))
def resStr = resources.stream().map({it.toString()}).collect(Collectors.joining(", "))
targetedAction(action, "Change $resStr by $amount on %who%\n")
}]
}
Expand Down

0 comments on commit 7948155

Please sign in to comment.