mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-02-26 20:22:11 +01:00
gkeyfile: Drop a redundant check
It should not be possible for `->locales` to be set without `->checked_locales` being set, so drop the redundant check. This helps with branch code coverage. Signed-off-by: Philip Withnall <pwithnall@endlessos.org>
This commit is contained in:
parent
9bad38887d
commit
164da19983
@ -1232,7 +1232,7 @@ g_key_file_locale_is_interesting (GKeyFile *key_file,
|
||||
if (key_file->flags & G_KEY_FILE_KEEP_TRANSLATIONS)
|
||||
return TRUE;
|
||||
|
||||
if (!key_file->checked_locales && !key_file->locales)
|
||||
if (!key_file->checked_locales)
|
||||
{
|
||||
key_file->locales = g_strdupv ((gchar **)g_get_language_names ());
|
||||
key_file->checked_locales = TRUE;
|
||||
|
Loading…
x
Reference in New Issue
Block a user