cppcheck: 1 'else if' cond matches prev cond+test indice before using it

cppcheck: 1 'else if' cond matches prev cond+test indice before using it