refactor: use when syntax instead of ; if
#2007
Draft
Loading
when syntax instead of ; if
#2007