From 7f7c4bd0b3cb69be060c219955f494d7fb5691ab Mon Sep 17 00:00:00 2001 From: Giovanni Bechis Date: Tue, 10 Dec 2024 18:16:57 +0100 Subject: [PATCH] simplify code Co-authored-by: Matt Simerson --- lib/Mail/DMARC/Policy.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Mail/DMARC/Policy.pm b/lib/Mail/DMARC/Policy.pm index 9b1c5173..7b9fbc9f 100644 --- a/lib/Mail/DMARC/Policy.pm +++ b/lib/Mail/DMARC/Policy.pm @@ -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$//;