[gnome-online-accounts] identity: Fix typo in add_temporary_account
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-online-accounts] identity: Fix typo in add_temporary_account
- Date: Fri, 6 Jan 2017 12:20:57 +0000 (UTC)
commit 3c8c2ae53be9329c38d3428f87bff9c4e085ee7e
Author: Debarshi Ray <debarshir gnome org>
Date: Thu Jan 5 17:37:14 2017 +0100
identity: Fix typo in add_temporary_account
The pending_temporary_account_results GHashTable maps strings to
GTasks, not GoaObjects. Let's take this opportunity to simplify the
code because we only want to check for availability.
https://bugzilla.gnome.org/show_bug.cgi?id=776906
src/goaidentity/goaidentityservice.c | 7 +------
1 files changed, 1 insertions(+), 6 deletions(-)
---
diff --git a/src/goaidentity/goaidentityservice.c b/src/goaidentity/goaidentityservice.c
index 0cc4d8b..231e3a2 100644
--- a/src/goaidentity/goaidentityservice.c
+++ b/src/goaidentity/goaidentityservice.c
@@ -872,14 +872,9 @@ add_temporary_account (GoaIdentityService *self,
GVariantBuilder credentials;
GVariantBuilder details;
GoaManager *manager;
- GoaObject *object;
principal = goa_identity_get_identifier (identity);
-
- object = g_hash_table_lookup (self->priv->pending_temporary_account_results,
- principal);
-
- if (object != NULL)
+ if (g_hash_table_contains (self->priv->pending_temporary_account_results, principal))
{
g_debug ("GoaIdentityService: would add temporary identity %s, but it's already pending", principal);
return;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]