Fixed typo
Signed-off-by: Hassan Tanveer <hassan.tanveer0097@gmail.com>
This commit is contained in:
parent
db3a907c24
commit
3e2c4408f1
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue