[gnome-contacts] Contact: simplify persona_is_google()
- From: Niels De Graef <nielsdg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-contacts] Contact: simplify persona_is_google()
- Date: Sun, 18 Feb 2018 09:59:29 +0000 (UTC)
commit cb05453988a468635a9ac037444cdc7af2cb39f3
Author: Niels De Graef <nielsdegraef gmail com>
Date: Sat Feb 17 16:13:12 2018 +0100
Contact: simplify persona_is_google()
src/contacts-contact.vala | 6 +-----
1 file changed, 1 insertion(+), 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);
}
/**
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]