(edit_suggest_current_word): the NULL check is unnecessary...

...because the pointer can't be NULL.

Found by Coverity.
Coverity id #313667.

Signed-off-by: Andreas Mohr <and@gmx.li>
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
Andreas Mohr 2020-12-13 12:50:56 +00:00 committed by Andrew Borodin
parent ae244077af
commit 68b803e5c4

View File

@ -3630,7 +3630,7 @@ edit_suggest_current_word (WEdit * edit)
edit_insert (edit, *new_word);
g_free (cp_word);
}
else if (retval == B_ADD_WORD && match_word != NULL)
else if (retval == B_ADD_WORD)
aspell_add_to_dict (match_word->str, (int) word_len);
}