improved case switch to a one line sentence
Merge pull request #324 from neydroid/pull-request-improve-code

improved case switch to a one line sentence