[gnome-panel] launcher: remove unneeded NULL check
- From: Alberts Muktupāvels <muktupavels src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-panel] launcher: remove unneeded NULL check
- Date: Wed, 14 Oct 2020 20:54:11 +0000 (UTC)
commit 70b46964a717dc8851aceff51a5377bb8fe1da6f
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date: Wed Oct 14 23:51:56 2020 +0300
launcher: remove unneeded NULL check
modules/launcher/gp-launcher-module.c | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
---
diff --git a/modules/launcher/gp-launcher-module.c b/modules/launcher/gp-launcher-module.c
index fdb4ff5bb..336918319 100644
--- a/modules/launcher/gp-launcher-module.c
+++ b/modules/launcher/gp-launcher-module.c
@@ -30,10 +30,9 @@ custom_launcher_is_disabled (GpLockdownFlags flags,
if ((flags & GP_LOCKDOWN_FLAGS_COMMAND_LINE) != GP_LOCKDOWN_FLAGS_COMMAND_LINE)
return FALSE;
- if (reason != NULL)
- *reason = g_strdup (_("Disabled because “disable-command-line” setting in "
- "“org.gnome.desktop.lockdown” GSettings schema is "
- "set to true."));
+ *reason = g_strdup (_("Disabled because “disable-command-line” setting in "
+ "“org.gnome.desktop.lockdown” GSettings schema is "
+ "set to true."));
return TRUE;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]