[master] Fix `if-then-else` clause