]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-index: mail_index_append_finish_uids() cleanup: remove unnecessary if check
authorTimo Sirainen <timo.sirainen@open-xchange.com>
Wed, 23 Jan 2019 15:29:22 +0000 (17:29 +0200)
committerVille Savolainen <ville.savolainen@dovecot.fi>
Thu, 21 Mar 2019 08:02:46 +0000 (10:02 +0200)
It was pretty confusing, and it was always TRUE.

src/lib-index/mail-index-transaction-update.c

index a1e8d62cad48ed48a4b5b0ab4e0c4e12a2e4d0b4..dae023f5345c2807a72e2f835832a7ac0cf0a35b 100644 (file)
@@ -224,8 +224,7 @@ void mail_index_append_finish_uids(struct mail_index_transaction *t,
                        if (t->highest_append_uid < recs[i].uid)
                                t->highest_append_uid = recs[i].uid;
                } else {
-                       if (next_uid != first_uid)
-                               t->appends_nonsorted = TRUE;
+                       t->appends_nonsorted = TRUE;
                }
        }