]> Sergey Matveev's repositories - public-inbox.git/commitdiff
lei_saved_search: avoid needless var shadowing
authorEric Wong <e@80x24.org>
Mon, 19 Apr 2021 08:52:12 +0000 (08:52 +0000)
committerEric Wong <e@80x24.org>
Mon, 19 Apr 2021 20:15:57 +0000 (20:15 +0000)
While perl (5.28) doesn't complain about this, it's confusing to
my easily-confused mind.

lib/PublicInbox/LeiSavedSearch.pm

index 94920a4e1178791cdfc8a25e15f5392360c65f77..19f4aa5fd4cae4b8a37cf088398f40d9f9007d95 100644 (file)
@@ -79,7 +79,7 @@ sub new {
                $self->{-cfg} //= PublicInbox::Config::git_config_dump($f);
                $self->{'-f'} = $f;
        } else { # new saved search "lei q --save"
-               my $dst = $lei->{ovv}->{dst};
+               $dst = $lei->{ovv}->{dst};
                $dir = lss_dir_for($lei, \$dst);
                require File::Path;
                File::Path::make_path($dir); # raises on error