]> 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)
committerTimo Sirainen <timo.sirainen@open-xchange.com>
Wed, 23 Jan 2019 15:29:40 +0000 (17:29 +0200)
It was pretty confusing, and it was always TRUE.

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

index 0816a7cfae45ed6237690d2759fd317ef34348bf..3a160d3bc84badce6663954d935786bbf6dec050 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;
                }
        }