From ac43c3b17f452b02edf1cce3632a433e998de5ca Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Fri, 27 Nov 2020 09:52:45 +0000 Subject: mm: min/max: return 0 instead of undef This simplifies callers and allows empty newsgroups to be represented (the WWW UI may be insufficient there, too). --- lib/PublicInbox/IMAPD.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/PublicInbox/IMAPD.pm') diff --git a/lib/PublicInbox/IMAPD.pm b/lib/PublicInbox/IMAPD.pm index bb705136..366b6922 100644 --- a/lib/PublicInbox/IMAPD.pm +++ b/lib/PublicInbox/IMAPD.pm @@ -45,7 +45,7 @@ sub imapd_refresh_ibx { # pi_config->each_inbox cb eval { $ibx->uidvalidity }; my $mm = delete($ibx->{mm}) or return; defined($ibx->{uidvalidity}) or return; - PublicInbox::IMAP::ensure_slices_exist($imapd, $ibx, $mm->max // 0); + PublicInbox::IMAP::ensure_slices_exist($imapd, $ibx, $mm->max); # preload to avoid fragmentation: $ibx->description; -- cgit v1.2.3-24-ge0c7