From a7346d58b6bc4ac21dc7ee9756e2569a4ce7b65b Mon Sep 17 00:00:00 2001 From: M66B Date: Thu, 11 Feb 2021 20:06:29 +0100 Subject: [PATCH] Simplification --- app/src/main/java/eu/faircode/email/Core.java | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/app/src/main/java/eu/faircode/email/Core.java b/app/src/main/java/eu/faircode/email/Core.java index 99b34acb55..aef9a9d40b 100644 --- a/app/src/main/java/eu/faircode/email/Core.java +++ b/app/src/main/java/eu/faircode/email/Core.java @@ -2457,12 +2457,9 @@ class Core { int expunge = 0; for (int i = 0; i < imessages.length && state.isRunning() && state.isRecoverable(); i++) try { - if (imessages[i].isSet(Flags.Flag.DELETED)) { - if (perform_expunge) - expunge++; - else - uids.remove(ifolder.getUID(imessages[i])); - } else + if (perform_expunge && imessages[i].isSet(Flags.Flag.DELETED)) + expunge++; + else uids.remove(ifolder.getUID(imessages[i])); } catch (MessageRemovedException ex) { Log.w(folder.name, ex);