[kompiler.py] Remove redundant check

Remove redundant check

Was there a reason for this? a limitation of python, like the extra `else`s?

(I realise I should've opened a PR for the other commit)