Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix uninitialized value warning: cover -write` #339

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

jsoref
Copy link

@jsoref jsoref commented Jul 15, 2024

fixes #317

Introduced by ea35cf0

@pjcj
Copy link
Owner

pjcj commented Jul 21, 2024

Thanks for tracking down and fixing this.

Copy link
Owner

@pjcj pjcj left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry, I obviously have no idea how to drive github. I thought I had made a comment here but apparently it was in a pending state.

bin/cover Outdated
@@ -236,8 +236,8 @@ sub main {
my @argv = @ARGV;
my $options = dclone($Options);
my $report = $Options->{report}[0];
my $format = "Devel::Cover::Report::\u$report";
$format->get_options($options) if $format->can("get_options");
my $format = "Devel::Cover::Report::\u$report" if $report;
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We'll need to change this a little so as not to declare a variable in a conditional.

Copy link
Author

@jsoref jsoref Dec 8, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You might not know how to drive GitHub, but you triggered a bug in GitHub mobile which shows your comment as having been made 5 months ago!
https://github.com/orgs/community/discussions/146598

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

uninitialized value warning when running 'cover -write'
2 participants