I think this is a common code style that used if else without braces in gallery app, so probably we don't have to change it.