hooks/check: Get rid of a goto statement
hooks/check: Get rid of a goto statement

Let's use a function call instead.

Story-Id: unassigned
Change-Id: c8d0ebcb8e

salsaflow/salsaflow,salsaflow/salsaflow