[gnome-software] trivial: Do not log addon duplicates at startup



commit 2d3d4a4510e5d796d0aa5b6403625ab172efb930
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 927eb80..7315a4f 100644
--- a/src/gs-app.c
+++ b/src/gs-app.c
@@ -1791,10 +1791,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]