diff options
author | Niels De Graef <nielsdegraef@gmail.com> | 2018-02-17 16:13:12 +0100 |
---|---|---|
committer | Niels De Graef <nielsdegraef@gmail.com> | 2018-02-18 10:58:45 +0100 |
commit | cb05453988a468635a9ac037444cdc7af2cb39f3 (patch) | |
tree | a37d6cdb2b22854a617036133d8e6ec35642fc65 | |
parent | 4f370b2402f78f35a99082fa605a028bccb87fd3 (diff) | |
download | gnome-contacts-cb05453988a468635a9ac037444cdc7af2cb39f3.tar.gz |
Contact: simplify persona_is_google()
-rw-r--r-- | src/contacts-contact.vala | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/contacts-contact.vala b/src/contacts-contact.vala index 551526b..5abc5fd 100644 --- a/src/contacts-contact.vala +++ b/src/contacts-contact.vala @@ -494,11 +494,7 @@ public class Contacts.Contact : GLib.Object { } private static bool persona_is_google (Persona persona) { - var store = persona.store; - - if (store.type_id == "eds" && esource_uid_is_google (store.id)) - return true; - return false; + return persona.store.type_id == "eds" && esource_uid_is_google (persona.store.id); } /** |