1
0
mirror of https://github.com/irssi/irssi.git synced 2024-09-01 04:14:16 -04:00

Remove else since prior condition returns

This commit is contained in:
Will Storey 2019-10-12 17:03:40 -07:00
parent ef5579c212
commit f9db4019af

View File

@ -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);