]> Sergey Matveev's repositories - public-inbox.git/blobdiff - lib/PublicInbox/LeiExternal.pm
lei: fix some warnings in tests
[public-inbox.git] / lib / PublicInbox / LeiExternal.pm
index b5dd85e158b18f007cf53f97e6e6c08f896430e0..f4e24c2a131ef3d6e4fa58dcc12b14183ddf4281 100644 (file)
@@ -222,7 +222,7 @@ sub _complete_url_common ($) {
        # Maybe there's a better way to go about this in
        # contrib/completion/lei-completion.bash
        my $re = '';
-       my $cur = pop @$argv;
+       my $cur = pop(@$argv) // '';
        if (@$argv) {
                my @x = @$argv;
                if ($cur eq ':' && @x) {