Skip to content

Commit

Permalink
Use the db provided in the params if it is there (#53)
Browse files Browse the repository at this point in the history
  • Loading branch information
flanneljeans authored and briandfoy committed Jul 11, 2023
1 parent ec4ab63 commit a3dec54
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/CPAN/Audit.pm
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ sub new {

$self->_handle_exclude_file if $self->{exclude_file};

$self->{db} = CPAN::Audit::DB->db;
$self->{db} //= CPAN::Audit::DB->db;

$self->{filter} = CPAN::Audit::Filter->new( exclude => $args{exclude} );
$self->{query} = CPAN::Audit::Query->new( db => $self->{db} );
Expand Down

0 comments on commit a3dec54

Please sign in to comment.