gkeyfile: Remove some unreachable code

There’s a precondition assertion on the function which checks that
`group_name != NULL`.

Signed-off-by: Philip Withnall <pwithnall@endlessos.org>

Coverity CID: #1474780
This commit is contained in:
Philip Withnall 2022-07-05 10:41:49 +01:00
parent ccc9bc1400
commit 3c69cd369f

View File

@ -3361,7 +3361,7 @@ g_key_file_set_group_comment (GKeyFile *key_file,
g_set_error (error, G_KEY_FILE_ERROR,
G_KEY_FILE_ERROR_GROUP_NOT_FOUND,
_("Key file does not have group “%s”"),
group_name ? group_name : "(null)");
group_name);
return FALSE;
}