Remove double check on collection_path in secret-collection.c

Signed-off-by: Stef Walter <stefw@redhat.com>
 * Most of the lines of change seem to be reindentation

https://bugzilla.gnome.org/show_bug.cgi?id=775747
This commit is contained in:
Garima Gaur 2016-12-07 16:28:01 +05:30 committed by Stef Walter
parent 780ae410ce
commit b9fbfbdb00

View File

@ -2220,14 +2220,10 @@ secret_collection_for_alias_sync (SecretService *service,
collection_path = secret_service_read_alias_dbus_path_sync (service, alias,
cancellable, error);
/* No collection for this alias */
if (collection_path == NULL)
return NULL;
/* No collection for this alias */
if (collection_path == NULL) {
collection = NULL;
} else {
collection = _secret_service_find_collection_instance (service,
collection_path);
@ -2245,7 +2241,6 @@ secret_collection_for_alias_sync (SecretService *service,
collection = secret_collection_new_for_dbus_path_sync (service, collection_path,
flags, cancellable, error);
}
}
g_free (collection_path);
return collection;