From 093e235bf0abc5b75588074fee47ec6c291b6464 Mon Sep 17 00:00:00 2001 From: Graham Christensen Date: Tue, 19 Oct 2021 22:02:41 -0400 Subject: [PATCH] GithubRefs: fixup "my" variable $type masks earlier declaration in same scope --- src/lib/Hydra/Plugin/GithubRefs.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/Hydra/Plugin/GithubRefs.pm b/src/lib/Hydra/Plugin/GithubRefs.pm index 1de2672d..2038ea47 100644 --- a/src/lib/Hydra/Plugin/GithubRefs.pm +++ b/src/lib/Hydra/Plugin/GithubRefs.pm @@ -97,8 +97,8 @@ sub _iterate { } sub fetchInput { - my ($self, $type, $name, $value, $project, $jobset) = @_; - return undef if $type ne "github_refs"; + my ($self, $input_type, $name, $value, $project, $jobset) = @_; + return undef if $input_type ne "github_refs"; my ($owner, $repo, $type, $fut, $prefix) = split ' ', $value; die "type field is neither 'heads' nor 'tags', but '$type'"