fix: remove wasted if-else condition