about summary refs log tree commit homepage
path: root/lib/PublicInbox/Msgmap.pm
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2019-05-25 04:34:20 +0000
committerEric Wong <e@80x24.org>2019-05-25 04:36:14 +0000
commited1125c4866bb078b366c09ff39f2036c36cbff5 (patch)
tree08fd6a04cfc9e03394e10b169a2620d3ffce7c63 /lib/PublicInbox/Msgmap.pm
parent2c569ea74232c381e6bf43c192e970b012245fa9 (diff)
downloadpublic-inbox-ed1125c4866bb078b366c09ff39f2036c36cbff5.tar.gz
I have never not found double negatives to be confusing...
Diffstat (limited to 'lib/PublicInbox/Msgmap.pm')
-rw-r--r--lib/PublicInbox/Msgmap.pm2
1 files changed, 1 insertions, 1 deletions
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;
 }