Skip to content

Commit

Permalink
find_psl_file: fix duplicate share in path (#232)
Browse files Browse the repository at this point in the history
- remove t/travis/.travis.yml CI config file, partial fix for #231
  • Loading branch information
msimerson authored May 31, 2024
1 parent dd957ac commit 93967b6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 19 deletions.
13 changes: 6 additions & 7 deletions lib/Mail/DMARC/Base.pm
Original file line number Diff line number Diff line change
Expand Up @@ -194,14 +194,13 @@ sub find_psl_file {
print "using $file for Public Suffix List\n" if $self->verbose;
return $file;
}
my $path;
foreach $path ($self->get_prefix('share/' . $file)) { ## no critic
last if ( -f $path && -r $path );

foreach my $path ($self->get_prefix($file)) {
if ( -f $path && -r $path ) {
print "using $path for Public Suffix List\n"; # if $self->verbose;
return $path;
}
}
if ($path && -r $path) {
print "using $path for Public Suffix List\n" if $self->verbose;
return $path;
};

# Fallback to included suffic list
return $self->get_sharefile('public_suffix_list');
Expand Down
12 changes: 0 additions & 12 deletions t/travis/.travis.yml

This file was deleted.

0 comments on commit 93967b6

Please sign in to comment.