From: Eric Wong Date: Sat, 25 May 2019 04:34:20 +0000 (+0000) Subject: msgmap: remove double negative X-Git-Tag: v1.2.0~224 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=ed1125c4866bb078b366c09ff39f2036c36cbff5;p=public-inbox.git msgmap: remove double negative I have never not found double negatives to be confusing... --- diff --git a/lib/PublicInbox/Msgmap.pm b/lib/PublicInbox/Msgmap.pm index d474bade..0035c9e3 100644 --- a/lib/PublicInbox/Msgmap.pm +++ b/lib/PublicInbox/Msgmap.pm @@ -130,7 +130,7 @@ INSERT OR IGNORE INTO msgmap (mid) VALUES (?) return if $sth->execute($mid) == 0; my $num = $dbh->last_insert_id(undef, undef, 'msgmap', 'num'); - $self->num_highwater($num) unless !defined($num); + $self->num_highwater($num) if defined($num); $num; }