[geary: 15/66] Minor tidy on last commit



commit f7ee234addc4e17c3db140823e2a12402b3319a9
Author: Chris Heywood <15127-creywood users noreply gitlab gnome org>
Date:   Wed Jan 8 14:15:07 2020 +0100

    Minor tidy on last commit

 src/engine/imap-engine/imap-engine-generic-account.vala | 9 ++-------
 1 file changed, 2 insertions(+), 7 deletions(-)
---
diff --git a/src/engine/imap-engine/imap-engine-generic-account.vala 
b/src/engine/imap-engine/imap-engine-generic-account.vala
index a8b8a68cb..b1f673c8e 100644
--- a/src/engine/imap-engine/imap-engine-generic-account.vala
+++ b/src/engine/imap-engine/imap-engine-generic-account.vala
@@ -551,13 +551,8 @@ private abstract class Geary.ImapEngine.GenericAccount : Geary.Account {
     // Continue backgrounded app cleanup work after the first phase,
     // old message detachment, has completed
     public void app_backgrounded_cleanup_continued(bool messages_detached, Cancellable? cancellable) {
-        if (messages_detached) {
-            // Kick off GC, forcing reap as we've removed messages, allowing vacuum
-            local.db.run_gc.begin(cancellable, true, this);
-        } else {
-            // Kick off GC, allowing vacuum
-            local.db.run_gc.begin(cancellable, false, this);
-        }
+        // Kick off GC, allowing vacuum and forcing reap if we've removed messages
+        local.db.run_gc.begin(cancellable, messages_detached, this);
     }
 
     /**


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]