Closed Hardikus closed 8 years ago
Why?
I think 'if' should be idiomatically used when there are two conditions, and 'when' should be used in case of one condition, which is the case here.
I think it's fine. If if
wasn't idiomatic for one conditions, it wouldn't have that functionality in the first place. when
is just if
+ do
, so switching an if
to a when
just adds a superfluous do
.
Okay, Thanks
Replace if with when.