From: Eric Wong Date: Sat, 18 Jan 2025 01:26:08 +0000 (+0000) Subject: lei_saved_search: drop needless comparisons and `next' X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d7fd7014b1e80f11742e847bec74894cafa00f29;p=thirdparty%2Fpublic-inbox.git lei_saved_search: drop needless comparisons and `next' The grep(!/\A\.\.?\z/, ...) op already filters out the `.' and `..' entries from `readdir'. --- diff --git a/lib/PublicInbox/LeiSavedSearch.pm b/lib/PublicInbox/LeiSavedSearch.pm index 83e19357d..0520ff980 100644 --- a/lib/PublicInbox/LeiSavedSearch.pm +++ b/lib/PublicInbox/LeiSavedSearch.pm @@ -85,7 +85,6 @@ sub list { print $fh "[include]\n"; opendir(my $dh, $lss_dir); for my $d (sort(grep(!/\A\.\.?\z/, readdir($dh)))) { - next if $d eq '.' || $d eq '..'; my $p = "$lss_dir/$d/lei.saved-search"; say $fh "\tpath = ", cquote_val($p) if -f $p; }