INI: Remove unnecessary conditional
@@ -1273,8 +1273,6 @@ static int iniWriteKeySet (FILE * fh, Key * parentKey, KeySet * returned, IniPlu
}
}
else if (!keyGetMeta (cur, "internal/ini/section"))
- {
- if (config->sectionHandling != NONE)
{
// handle possible section conflicts
const Key * parentMeta = keyGetMeta (cur, "internal/ini/parent");
@@ -1290,8 +1288,7 @@ static int iniWriteKeySet (FILE * fh, Key * parentKey, KeySet * returned, IniPlu
fprintf (fh, "[%s]\n", name);
elektraFree (name);
}
- else if (!strcmp (keyName (parentKey), "/") &&
- !strcmp (keyString (parentMeta), "/"))
+ else if (!strcmp (keyName (parentKey), "/") && !strcmp (keyString (parentMeta), "/"))
{
fprintf (fh, "[]\n");
}
@@ -1331,7 +1328,6 @@ static int iniWriteKeySet (FILE * fh, Key * parentKey, KeySet * returned, IniPlu
removeSectionKey = 0;
}
}
- }
if (keyGetMeta (cur, "internal/ini/array") && config->array)
{
int lastArrayIndex = atoi (keyString (keyGetMeta (cur, "internal/ini/array")) + 1);
