[gnome-software/gnome-3-20] trivial: Do not log addon duplicates at startup
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software/gnome-3-20] trivial: Do not log addon duplicates at startup
- Date: Thu, 14 Apr 2016 17:29:45 +0000 (UTC)
commit 1fef02ec7f9d0189896837c31e22eb407274396f
Author: Richard Hughes <richard hughsie com>
Date: Tue Apr 12 11:36:53 2016 +0100
trivial: Do not log addon duplicates at startup
src/gs-app.c | 4 +---
1 files changed, 1 insertions(+), 3 deletions(-)
---
diff --git a/src/gs-app.c b/src/gs-app.c
index 4310708..a53555a 100644
--- a/src/gs-app.c
+++ b/src/gs-app.c
@@ -1771,10 +1771,8 @@ gs_app_add_addon (GsApp *app, GsApp *addon)
id = gs_app_get_id (addon);
found = g_hash_table_lookup (app->addons_hash, id);
- if (found != NULL) {
- g_debug ("Already added %s as an addon", id);
+ if (found != NULL)
return;
- }
g_hash_table_insert (app->addons_hash, g_strdup (id), GINT_TO_POINTER (1));
g_ptr_array_add (app->addons, g_object_ref (addon));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]