gplugin/gplugin

Remove to redundant null checks on a GError that pvs-studio found.
bugfix/redundant-error-checks
2020-04-10, Gary Kramlich
a623a9ed4590
Parents bc4d270dc151
Children 70b05d3d4b9c
Remove to redundant null checks on a GError that pvs-studio found.
--- a/gplugin/gplugin-manager.c Fri Mar 20 04:44:34 2020 +0000
+++ b/gplugin/gplugin-manager.c Fri Apr 10 03:39:17 2020 -0500
@@ -530,13 +530,11 @@
"loader '%s': %s"),
filename,
G_OBJECT_TYPE_NAME(loader),
- (error) ? error->message : _("Unknown"));
+ error->message);
error_messages =
g_list_prepend(error_messages, error_message);
- if(error)
- g_error_free(error);
-
+ g_error_free(error);
error = NULL;
loader = NULL;