Remove unnecessary repeated check

tmp has already been tested in the previous line.
This commit is contained in:
Kevin Easton
2017-02-12 23:55:16 +11:00
parent 3d353f5a48
commit 1f062fb7de

View File

@@ -2012,9 +2012,7 @@ static NickTab sucks = { NULL };
if (tmp && (in_completion == STATE_NORMAL || in_completion == STATE_TABKEY)) if (tmp && (in_completion == STATE_NORMAL || in_completion == STATE_TABKEY))
{ {
if (!oldnick && !nick)
if (!oldnick && !nick && tmp)
{ {
in_completion = STATE_TABKEY; in_completion = STATE_TABKEY;
return tmp; return tmp;