[folks/648811-dummy-backend-rebase1: 18/41] dummy: Reformat some code



commit f47e7f0ea1b6ff7d11a670ffd5e0e790e9fab97c
Author: Philip Withnall <philip withnall collabora co uk>
Date:   Wed Nov 6 10:48:34 2013 +0000

    dummy: Reformat some code
    
    No functional changes.

 backends/dummy/lib/dummy-persona-store.vala |   20 +++++++++-----------
 1 files changed, 9 insertions(+), 11 deletions(-)
---
diff --git a/backends/dummy/lib/dummy-persona-store.vala b/backends/dummy/lib/dummy-persona-store.vala
index 903f306..c2e599f 100644
--- a/backends/dummy/lib/dummy-persona-store.vala
+++ b/backends/dummy/lib/dummy-persona-store.vala
@@ -868,18 +868,16 @@ public class Dummyf.PersonaStore : Folks.PersonaStore
       foreach (var _persona in personas)
         {
           Persona? persona = this._personas.get (_persona.iid);
-          if (persona != null)
-            {
-              removed_personas.add ((!) persona);
-              this._personas.unset (((!) persona).iid);
+          if (persona == null)
+              continue;
 
-              /* Handle the case where a contact is removed before the persona
-               * store has reached quiescence. */
-              if (this._pending_personas != null)
-                {
-                  this._pending_personas.remove ((!) persona);
-                }
-            }
+          removed_personas.add ((!) persona);
+          this._personas.unset (((!) persona).iid);
+
+          /* Handle the case where a contact is removed before the persona
+           * store has reached quiescence. */
+          if (this._pending_personas != null)
+              this._pending_personas.remove ((!) persona);
         }
 
        if (removed_personas.size > 0)


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