From 3e2c4408f18b7b65a5fcc493e24f0cd98785b3d6 Mon Sep 17 00:00:00 2001 From: Hassan Tanveer Date: Mon, 15 May 2023 20:45:04 +0000 Subject: [PATCH] Fixed typo Signed-off-by: Hassan Tanveer --- pkg/karmadactl/interpret/check.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/karmadactl/interpret/check.go b/pkg/karmadactl/interpret/check.go index f844cd73d..38a71956b 100644 --- a/pkg/karmadactl/interpret/check.go +++ b/pkg/karmadactl/interpret/check.go @@ -59,7 +59,7 @@ func (o *Options) runCheck() error { fmt.Fprintln(w, "UNSET") continue } - checkErr := checkScrip(script) + checkErr := checkScript(script) if checkErr != nil { failed = true fmt.Fprintf(w, "%s: %s\t\n", "ERROR", strings.TrimSpace(checkErr.Error())) @@ -80,7 +80,7 @@ func (o *Options) runCheck() error { return nil } -func checkScrip(script string) error { +func checkScript(script string) error { ctx, cancel := context.WithTimeout(context.TODO(), time.Second) defer cancel() l, err := luavm.NewWithContext(ctx)