]> Sergey Matveev's repositories - public-inbox.git/blobdiff - lib/PublicInbox/Smsg.pm
config: lazy-load coderepos, support extindex
[public-inbox.git] / lib / PublicInbox / Smsg.pm
index 2b72e8b5ae804e283cbd4711f2a001261da9355c..b4cc2ecb1afe6e4b2a224138cb39a6eff8bdca18 100644 (file)
@@ -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;