diff options
author | rbuj <[email protected]> | 2020-12-05 21:31:24 +0100 |
---|---|---|
committer | Victor Kareh <[email protected]> | 2020-12-10 14:53:19 -0500 |
commit | dba1340ce73b1d676fc7ff6e19f7798236e803e9 (patch) | |
tree | 348d1716e5a86d04e78d5eab79f8830a8b83b2dd | |
parent | a9e139601515769f5662692b307cd6f81a1f2ff2 (diff) | |
download | pluma-dba1340ce73b1d676fc7ff6e19f7798236e803e9.tar.bz2 pluma-dba1340ce73b1d676fc7ff6e19f7798236e803e9.tar.xz |
cppcheck warning: The if condition is the same as the previous one
-rw-r--r-- | plugins/spell/pluma-spell-checker.c | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/plugins/spell/pluma-spell-checker.c b/plugins/spell/pluma-spell-checker.c index e269faf4..394c3bbf 100644 --- a/plugins/spell/pluma-spell-checker.c +++ b/plugins/spell/pluma-spell-checker.c @@ -247,15 +247,17 @@ lazy_init (PlumaSpellChecker *spell, /* Second try to get a default language */ if (spell->active_lang == NULL) + { spell->active_lang = pluma_spell_checker_language_from_key ("en_US"); - /* Last try to get a default language */ - if (spell->active_lang == NULL) - { - const GSList *langs; - langs = pluma_spell_checker_get_available_languages (); - if (langs != NULL) - spell->active_lang = (const PlumaSpellCheckerLanguage *)langs->data; + /* Last try to get a default language */ + if (spell->active_lang == NULL) + { + const GSList *langs; + langs = pluma_spell_checker_get_available_languages (); + if (langs != NULL) + spell->active_lang = (const PlumaSpellCheckerLanguage *)langs->data; + } } if (spell->active_lang != NULL) |