Skip to content

Commit

Permalink
simplify code
Browse files Browse the repository at this point in the history
Co-authored-by: Matt Simerson <matt@tnpi.net>
  • Loading branch information
bigio and msimerson authored Dec 10, 2024
1 parent 4a1759f commit 7f7c4bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Mail/DMARC/Policy.pm
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ sub stringify {
# "v" tag must be the first one
my $dmarc_txt = 'v=' . delete $dmarc_record{v} . '; ';
foreach my $key ( keys %dmarc_record ) {
next if ($key =~ /^domain|v$/);
next if $key eq 'domain';
$dmarc_txt .= "$key=$dmarc_record{$key}; ";
}
$dmarc_txt =~ s/;\s$//;
Expand Down

0 comments on commit 7f7c4bd

Please sign in to comment.