refactor: use a simple if
instead of match
+ if
#7556
Merged
if
instead of match
+ if
#7556