Remove inline assignment in if block

Closes #431