From ad183a7208cf4dcec336b809cc4120cc18c76c4e Mon Sep 17 00:00:00 2001 From: TorchedSammy <38820196+TorchedSammy@users.noreply.github.com> Date: Tue, 29 Mar 2022 20:57:05 -0400 Subject: [PATCH] style: use comma separated cases instead of fallthrough --- api.go | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/api.go b/api.go index 2899d90..3faee7c 100644 --- a/api.go +++ b/api.go @@ -564,11 +564,7 @@ func hlrunnerMode(t *rt.Thread, c *rt.GoCont) (rt.Cont, error) { case rt.StringType: switch mode.AsString() { // no fallthrough doesnt work so eh - case "hybrid": fallthrough - case "hybridRev": fallthrough - case "lua": fallthrough - case "sh": - runnerMode = mode + case "hybrid", "hybridRev", "lua", "sh": runnerMode = mode default: return nil, errors.New("execMode: expected either a function or hybrid, hybridRev, lua, sh. Received " + mode.AsString()) } case rt.FunctionType: runnerMode = mode