[gnome-contacts] Contact: simplify persona_is_google_other()
- From: Niels De Graef <nielsdg src gnome org>
 
- To: commits-list gnome org
 
- Cc: 
 
- Subject: [gnome-contacts] Contact: simplify persona_is_google_other()
 
- Date: Sun, 18 Feb 2018 09:59:39 +0000 (UTC)
 
commit 766368d106a5301801ce6183da59a95bdfedb9ad
Author: Niels De Graef <nielsdegraef gmail com>
Date:   Sun Feb 18 10:57:39 2018 +0100
    Contact: simplify persona_is_google_other()
 src/contacts-contact.vala | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
---
diff --git a/src/contacts-contact.vala b/src/contacts-contact.vala
index b55831f..7f332a7 100644
--- a/src/contacts-contact.vala
+++ b/src/contacts-contact.vala
@@ -492,9 +492,7 @@ public class Contacts.Contact : GLib.Object  {
       return false;
 
     var p = persona as Edsf.Persona;
-    if (p != null)
-      return !p.in_google_personal_group;
-    return false;
+    return p != null && !p.in_google_personal_group;
   }
 
   public static bool persona_is_google_profile (Persona persona) {
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]