Avoid use of map in void context

This commit is contained in:
Adam Spiers 2011-11-22 14:28:37 +00:00
parent 1873e4b4ef
commit a7262a98bc

View file

@ -434,7 +434,7 @@ sub main {
if (scalar @conflicts) { if (scalar @conflicts) {
warn "WARNING: conflicts detected.\n"; warn "WARNING: conflicts detected.\n";
if ($options->{'conflicts'}) { if ($options->{'conflicts'}) {
map { warn $_ } @conflicts; warn $_ foreach @conflicts;
} }
warn "WARNING: all operations aborted.\n"; warn "WARNING: all operations aborted.\n";
} }