]> Sergey Matveev's repositories - public-inbox.git/commitdiff
lei: style fix for $oldset declaration
authorEric Wong <e@80x24.org>
Fri, 26 Feb 2021 09:41:37 +0000 (22:41 -1100)
committerEric Wong <e@80x24.org>
Fri, 26 Feb 2021 20:50:49 +0000 (16:50 -0400)
We want /^sub oldset/ to match to keep editors and
things like ctags happy.

lib/PublicInbox/LEI.pm

index 8825fa4379d87006880a715b64abe9621060cca1..5cdaabc6ca0f6fcf70c8c10decf26214b1d83a23 100644 (file)
@@ -27,7 +27,7 @@ use Time::HiRes qw(stat); # ctime comparisons for config cache
 use File::Path qw(mkpath);
 use File::Spec;
 our $quit = \&CORE::exit;
-our ($current_lei, $errors_log, $listener);
+our ($current_lei, $errors_log, $listener, $oldset);
 my ($recv_cmd, $send_cmd);
 my $GLP = Getopt::Long::Parser->new;
 $GLP->configure(qw(gnu_getopt no_ignore_case auto_abbrev));
@@ -976,7 +976,7 @@ sub event_step_init {
 
 sub noop {}
 
-our $oldset; sub oldset { $oldset }
+sub oldset { $oldset }
 
 sub dump_and_clear_log {
        if (defined($errors_log) && -s STDIN && seek(STDIN, 0, SEEK_SET)) {