From f9db4019afee3bb5fcc894b2810a640e0f79fed1 Mon Sep 17 00:00:00 2001 From: Will Storey Date: Sat, 12 Oct 2019 17:03:40 -0700 Subject: [PATCH] Remove else since prior condition returns --- src/core/settings.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/core/settings.c b/src/core/settings.c index 9b50f6f4..18f44257 100644 --- a/src/core/settings.c +++ b/src/core/settings.c @@ -557,7 +557,8 @@ static int backwards_compatibility(const char *module, CONFIG_NODE *node, g_free(new_value); config_changed = TRUE; return new_key != NULL; - } else if (g_ascii_strcasecmp(node->key, "actlist_moves") == 0 && + } + if (g_ascii_strcasecmp(node->key, "actlist_moves") == 0 && node->value != NULL && g_ascii_strcasecmp(node->value, "yes") == 0) { config_node_set_str(mainconfig, parent, "actlist_sort", "recent"); config_node_set_str(mainconfig, parent, node->key, NULL);