summaryrefslogtreecommitdiff
path: root/lua_common.go
diff options
context:
space:
mode:
Diffstat (limited to 'lua_common.go')
-rw-r--r--lua_common.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/lua_common.go b/lua_common.go
index 29fdab9..616beea 100644
--- a/lua_common.go
+++ b/lua_common.go
@@ -42,12 +42,12 @@ func (l *Lua) PushAny(v any) error {
switch v.(type) {
case nil:
l.PushNil()
- case string:
- v, _ := v.(string)
- l.PushString(v)
case func (l *Lua) int:
v, _ := v.(func (l *Lua) int)
l.PushGoFunction(v)
+ case string:
+ v, _ := v.(string)
+ l.PushString(v)
case int:
v, _ := v.(int)
l.PushNumber(v)