Skip to content

Commit

Permalink
Remove unnecessary initialization of booleans
Browse files Browse the repository at this point in the history
  • Loading branch information
petdance committed Dec 1, 2024
1 parent a870df5 commit e4b20eb
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions ack
Original file line number Diff line number Diff line change
Expand Up @@ -450,7 +450,7 @@ sub _compile_file_filter {
else {
my @dirs = File::Spec->splitdir($File::Next::dir);

my $is_ignoring = 0;
my $is_ignoring;

for ( my $i = 0; $i < @dirs; $i++) {
my $dir_rsrc = App::Ack::File->new(File::Spec->catfile(@dirs[0 .. $i]));
Expand Down Expand Up @@ -550,7 +550,7 @@ my $after_context_pending;
my $printed_lineno;

my $is_first_match;
state $has_printed_from_any_file = 0;
state $has_printed_from_any_file;


sub file_loop_normal {
Expand Down Expand Up @@ -641,7 +641,7 @@ sub pmif_context {
my $max_count = shift;

my $in_range = range_setup();
my $has_printed_from_this_file = 0;
my $has_printed_from_this_file;
my $nmatches = 0;

$after_context_pending = 0;
Expand Down Expand Up @@ -717,7 +717,7 @@ sub pmif_passthru {
my $max_count = shift;

my $in_range = range_setup();
my $has_printed_from_this_file = 0;
my $has_printed_from_this_file;
my $nmatches = 0;

local $_ = undef;
Expand Down Expand Up @@ -772,7 +772,7 @@ sub pmif_opt_v {
my $max_count = shift;

my $in_range = range_setup();
my $has_printed_from_this_file = 0;
my $has_printed_from_this_file;
my $nmatches = 0;

$match_colno = undef;
Expand Down Expand Up @@ -821,7 +821,7 @@ sub pmif_normal {
my $max_count = shift;

my $in_range = range_setup();
my $has_printed_from_this_file = 0;
my $has_printed_from_this_file;
my $nmatches = 0;

my $last_match_lineno;
Expand Down

0 comments on commit e4b20eb

Please sign in to comment.