update codestyle.
remove unnecessary `else`.
fixed codestyle.