summaryrefslogtreecommitdiffstats
path: root/lib/Crawl/Bot/Plugin/Monster.pm
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Crawl/Bot/Plugin/Monster.pm')
-rw-r--r--lib/Crawl/Bot/Plugin/Monster.pm7
1 files changed, 3 insertions, 4 deletions
diff --git a/lib/Crawl/Bot/Plugin/Monster.pm b/lib/Crawl/Bot/Plugin/Monster.pm
index ffa5940..445b16b 100644
--- a/lib/Crawl/Bot/Plugin/Monster.pm
+++ b/lib/Crawl/Bot/Plugin/Monster.pm
@@ -31,10 +31,9 @@ sub get_monster_info {
return "Error: Bad branch $branch\n" unless $branch =~ /^(trunk|stable)$/;
CORE::open(F, "-|") || do {
- # Collect stderr too
- close STDERR; open STDERR, '>&STDOUT';
- exec "bin/monster-$branch", $monster or die "could not execute monster-$branch: $!";
-
+ # Collect stderr too
+ close STDERR; open STDERR, '>&STDOUT';
+ exec "bin/monster-$branch", $monster or die "could not execute monster-$branch: $!";
};
binmode F, ":utf8";
local $/ = undef;