about summary refs log tree commit homepage
path: root/lib/PublicInbox/NNTP.pm
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2020-11-27 09:52:45 +0000
committerEric Wong <e@80x24.org>2020-11-28 04:53:14 +0000
commitac43c3b17f452b02edf1cce3632a433e998de5ca (patch)
treeddb44342dd894fdfe757c816cb24615247af34bb /lib/PublicInbox/NNTP.pm
parentfb7d0067dc55fa8336dab96c07807fc7b28a1b20 (diff)
downloadpublic-inbox-ac43c3b17f452b02edf1cce3632a433e998de5ca.tar.gz
This simplifies callers and allows empty newsgroups to be
represented (the WWW UI may be insufficient there, too).
Diffstat (limited to 'lib/PublicInbox/NNTP.pm')
-rw-r--r--lib/PublicInbox/NNTP.pm4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/PublicInbox/NNTP.pm b/lib/PublicInbox/NNTP.pm
index 2197d758..b641bd23 100644
--- a/lib/PublicInbox/NNTP.pm
+++ b/lib/PublicInbox/NNTP.pm
@@ -244,7 +244,7 @@ sub parse_time ($$;$) {
 sub group_line ($$) {
         my ($self, $ng) = @_;
         my ($min, $max) = $ng->mm->minmax;
-        more($self, "$ng->{newsgroup} $max $min n") if defined $min && defined $max;
+        more($self, "$ng->{newsgroup} $max $min n");
 }
 
 sub cmd_newgroups ($$$;$$) {
@@ -343,8 +343,6 @@ sub cmd_group ($$) {
 
         $self->{ng} = $ng;
         my ($min, $max) = $ng->mm->minmax;
-        $min ||= 0;
-        $max ||= 0;
         $self->{article} = $min;
         my $est_size = $max - $min;
         "211 $est_size $min $max $group";