GithubRefs: fixup "my" variable $type masks earlier declaration in same scope

This commit is contained in:
Graham Christensen 2021-10-19 22:02:41 -04:00
parent 0f8d02894a
commit 093e235bf0

View file

@ -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'"