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:
Cole Helbling 2021-11-29 12:19:04 -08:00
parent e5be4a9022
commit f26b3e1779

View file

@ -17,7 +17,7 @@ sub parse_payload :prototype($$) {
my ($channel_name, $payload) = @_;
my @payload = split /\t/, $payload;
my $parser = %channels_to_events{$channel_name};
my $parser = $channels_to_events{$channel_name};
unless (defined $parser) {
die "Invalid channel name: '$channel_name'";
}