Skip to content

Commit

Permalink
Leave out unnecessary '>= 0' in string output
Browse files Browse the repository at this point in the history
  • Loading branch information
Leont committed Jun 26, 2024
1 parent df35b2c commit cebcae1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/CPAN/Meta/Requirements/Range.pm
Original file line number Diff line number Diff line change
Expand Up @@ -460,6 +460,7 @@ sub as_string {
my @parts = @{ $self->as_struct };

return $parts[0][1] if @parts == 1 and $parts[0][0] eq '>=';
@parts = grep { $_->[0] ne '>=' || $->[1] != 0 } @parts;

return join q{, }, map {; join q{ }, @$_ } @parts;
}
Expand Down

0 comments on commit cebcae1

Please sign in to comment.