summaryrefslogtreecommitdiffstats
path: root/lib/Log/Dispatch/Channels.pm
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Log/Dispatch/Channels.pm')
-rw-r--r--lib/Log/Dispatch/Channels.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Log/Dispatch/Channels.pm b/lib/Log/Dispatch/Channels.pm
index d82a36f..574e5d1 100644
--- a/lib/Log/Dispatch/Channels.pm
+++ b/lib/Log/Dispatch/Channels.pm
@@ -39,7 +39,7 @@ sub _forward_to_channels {
my $channels = shift;
my $method = shift;
my @channels = !defined $channels
- ? [keys %{ $self->{channels} }]
+ ? (keys %{ $self->{channels} })
: ref $channels
? @$channels
: ($channels);