about summary refs log tree commit homepage
path: root/lib/PublicInbox/Smsg.pm
diff options
context:
space:
mode:
Diffstat (limited to 'lib/PublicInbox/Smsg.pm')
-rw-r--r--lib/PublicInbox/Smsg.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/PublicInbox/Smsg.pm b/lib/PublicInbox/Smsg.pm
index 2b72e8b5..b4cc2ecb 100644
--- a/lib/PublicInbox/Smsg.pm
+++ b/lib/PublicInbox/Smsg.pm
@@ -83,7 +83,7 @@ sub parse_references ($$$) {
                         warn "References: <$ref> too long, ignoring\n";
                         next;
                 }
-                push(@keep, $ref) unless $seen{$ref}++;
+                $seen{$ref} //= push(@keep, $ref);
         }
         $smsg->{references} = '<'.join('> <', @keep).'>' if @keep;
         \@keep;