]> git.lizzy.rs Git - micro.git/blobdiff - internal/config/plugin.go
better top
[micro.git] / internal / config / plugin.go
index 1e1f96858d71bb4042bee1314a89e127763973dc..9dceb60b04e679761f184809b019c3d7c4a82010 100644 (file)
@@ -57,9 +57,7 @@ func RunPluginFnBool(fn string, args ...lua.LValue) (bool, error) {
                        reterr = errors.New("Plugin " + p.Name + ": " + err.Error())
                        continue
                }
-               if v, ok := val.(lua.LBool); !ok {
-                       reterr = errors.New(p.Name + "." + fn + " should return a boolean")
-               } else {
+               if v, ok := val.(lua.LBool); ok {
                        retbool = retbool && bool(v)
                }
        }