you can avoid the superfluous `{}` after `else -&g...
# codereview
e
you can avoid the superfluous
{}
after
else ->
, also the second
when
is kind of useless