diff options
author | Wu Xiaotian <[email protected]> | 2019-07-03 16:16:26 +0800 |
---|---|---|
committer | raveit65 <[email protected]> | 2019-07-05 14:37:18 +0200 |
commit | 147dc7e03fac861dc95b887f20041d22670e6b75 (patch) | |
tree | eb44775e720d5d4157446b075fc878d921dcf0d7 /plugins | |
parent | 3335393125ba274f0d5eaee56b73b69a89339696 (diff) | |
download | mate-settings-daemon-147dc7e03fac861dc95b887f20041d22670e6b75.tar.bz2 mate-settings-daemon-147dc7e03fac861dc95b887f20041d22670e6b75.tar.xz |
plugins housekeeping: optimization code
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/housekeeping/msd-ldsm-dialog.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/plugins/housekeeping/msd-ldsm-dialog.c b/plugins/housekeeping/msd-ldsm-dialog.c index f3a614f..7d85c8c 100644 --- a/plugins/housekeeping/msd-ldsm-dialog.c +++ b/plugins/housekeeping/msd-ldsm-dialog.c @@ -161,8 +161,7 @@ ignore_check_button_toggled_cb (GtkToggleButton *button, settings_list = g_settings_get_strv (settings, SETTINGS_IGNORE_PATHS); for (i = 0; i < g_strv_length (settings_list); i++) { - if (settings_list[i] != NULL) - ignore_paths = g_slist_prepend (ignore_paths, g_strdup (settings_list[i])); + ignore_paths = g_slist_prepend (ignore_paths, g_strdup (settings_list[i])); } g_strfreev (settings_list); |