diff options
author | Eric Wong <e@80x24.org> | 2020-10-27 07:54:17 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2020-11-07 10:18:46 +0000 |
commit | 039e1492f773ad1664e3d8a8bac7d67b1de9392f (patch) | |
tree | 77529beaf1b7dcb3b1a920d337fd9af0a0e6ea48 /lib/PublicInbox/InboxWritable.pm | |
parent | f1bfa6f60344cb2a06d812f8c97d9ba0f5aaad45 (diff) | |
download | public-inbox-039e1492f773ad1664e3d8a8bac7d67b1de9392f.tar.gz |
This is preferable to open-coding "newsgroup // inboxdir" everywhere.
Diffstat (limited to 'lib/PublicInbox/InboxWritable.pm')
-rw-r--r-- | lib/PublicInbox/InboxWritable.pm | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/PublicInbox/InboxWritable.pm b/lib/PublicInbox/InboxWritable.pm index e97c7e2d..d3c255c7 100644 --- a/lib/PublicInbox/InboxWritable.pm +++ b/lib/PublicInbox/InboxWritable.pm @@ -319,4 +319,6 @@ sub git_dir_latest { $latest; } +sub eidx_key { $_[0]->{newsgroup} // $_[0]->{inboxdir} } + 1; |