forked from lix-project/hydra
Hydra/Event: fix scalar context warning
12:10:15 hydra-notify.1 | %channels_to_events{...} in scalar context better written as $channels_to_events{...} at /home/vin/workspace/vcs/hydra/src/lib/Hydra/Event.pm line 20.
This commit is contained in:
parent
e5be4a9022
commit
f26b3e1779
|
@ -17,7 +17,7 @@ sub parse_payload :prototype($$) {
|
||||||
my ($channel_name, $payload) = @_;
|
my ($channel_name, $payload) = @_;
|
||||||
my @payload = split /\t/, $payload;
|
my @payload = split /\t/, $payload;
|
||||||
|
|
||||||
my $parser = %channels_to_events{$channel_name};
|
my $parser = $channels_to_events{$channel_name};
|
||||||
unless (defined $parser) {
|
unless (defined $parser) {
|
||||||
die "Invalid channel name: '$channel_name'";
|
die "Invalid channel name: '$channel_name'";
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue