Remove useless 'then' after condition