Skip to content

Commit

Permalink
Initialize fixed version to empty string to silence warnings
Browse files Browse the repository at this point in the history
Not everything has a fixed version.
  • Loading branch information
briandfoy committed Aug 24, 2024
1 parent 008a14f commit 482c3c1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions script/cpan-audit
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ sub format_advisory {
if ( $advisory->{fixed_versions} ) {
my @v = ref $advisory->{fixed_versions} ? $advisory->{fixed_versions}->@* : $advisory->{fixed_versions};
my $first = shift @v;
$first //= '';
$s .= " Fixed range: $first\n";
$s .= " $_\n" for @v;
}
Expand Down

0 comments on commit 482c3c1

Please sign in to comment.