[gnome-software: 3/6] snap: Remove a redundant trailing newline in a warning message




commit 83ccc4691e31fb03768df67502e850c1197abe54
Author: Philip Withnall <pwithnall endlessos org>
Date:   Thu Mar 3 21:42:53 2022 +0000

    snap: Remove a redundant trailing newline in a warning message
    
    `g_warning()` adds a newline itself.
    
    Signed-off-by: Philip Withnall <pwithnall endlessos org>

 plugins/snap/gs-plugin-snap.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/plugins/snap/gs-plugin-snap.c b/plugins/snap/gs-plugin-snap.c
index d0657c321..34e8be8b8 100644
--- a/plugins/snap/gs-plugin-snap.c
+++ b/plugins/snap/gs-plugin-snap.c
@@ -850,7 +850,7 @@ gs_plugin_add_alternates (GsPlugin *plugin,
 
                snap = get_store_snap (self, client, snap_name, TRUE, cancellable, NULL);
                if (snap == NULL) {
-                       g_warning ("Failed to get store snap %s\n", snap_name);
+                       g_warning ("Failed to get store snap %s", snap_name);
                        return TRUE;
                }
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]