about summary refs log tree commit homepage
path: root/lib/PublicInbox/LEI.pm
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2022-11-28 05:31:40 +0000
committerEric Wong <e@80x24.org>2022-11-28 23:38:56 +0000
commitadafbb31b8bd80a9605625bea42ee40fae25e272 (patch)
treedd236e9e122753942340d0722cab73bd1eab45c6 /lib/PublicInbox/LEI.pm
parent9686e462f9dee7cfa6cf153076e5bf66e4fda74a (diff)
downloadpublic-inbox-adafbb31b8bd80a9605625bea42ee40fae25e272.tar.gz
lazy_cb should only be used for lei command dispatch and
completion callbacks when the method isn't known at startup.
There's zero reason to use it when the method is known
ahead-of-time, especially when there's a comment pointing
reviewers towards the only possible method it can dispatch.
Diffstat (limited to 'lib/PublicInbox/LEI.pm')
-rw-r--r--lib/PublicInbox/LEI.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/PublicInbox/LEI.pm b/lib/PublicInbox/LEI.pm
index f3e80113..8a14ace4 100644
--- a/lib/PublicInbox/LEI.pm
+++ b/lib/PublicInbox/LEI.pm
@@ -787,7 +787,7 @@ EOM
         }
 }
 
-sub lazy_cb ($$$) {
+sub lazy_cb ($$$) { # $pfx is _complete_ or lei_
         my ($self, $cmd, $pfx) = @_;
         my $ucmd = $cmd;
         $ucmd =~ tr/-/_/;