]> Sergey Matveev's repositories - public-inbox.git/commitdiff
msgmap: remove double negative
authorEric Wong <e@80x24.org>
Sat, 25 May 2019 04:34:20 +0000 (04:34 +0000)
committerEric Wong <e@80x24.org>
Sat, 25 May 2019 04:36:14 +0000 (04:36 +0000)
I have never not found double negatives to be confusing...

lib/PublicInbox/Msgmap.pm

index d474badef16b06a9bf74b63f80224860598d406c..0035c9e3dc1ad8ff5bad1d3201ab06ecf9105032 100644 (file)
@@ -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;
 }