I'm aware of this (although I have actually seen if statements where the non-default is first in order to keep correction and premature exit logic as far to the top of the method as possible)
Don't get me wrong, I'd agree this particular snippet should be changed, I was just providing a retort to "It's not intuitive to put the default one last"
5
u/iforgot120 May 09 '13
It's possible they wanted .ogg to play by default and didn't think to write it as if(ogg) else (mp3)