From f26b3e177947619987bd9e2671340c733b524e45 Mon Sep 17 00:00:00 2001 From: Cole Helbling Date: Mon, 29 Nov 2021 12:19:04 -0800 Subject: [PATCH] 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. --- src/lib/Hydra/Event.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/Hydra/Event.pm b/src/lib/Hydra/Event.pm index e3954308..b14d74f4 100644 --- a/src/lib/Hydra/Event.pm +++ b/src/lib/Hydra/Event.pm @@ -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'"; }