Skip to content

Commit

Permalink
More linting fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
zyro committed Nov 24, 2024
1 parent d8066fd commit 4092921
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions server/runtime_lua_nakama.go
Original file line number Diff line number Diff line change
Expand Up @@ -2720,7 +2720,7 @@ func (n *RuntimeLuaNakamaModule) usersGetId(l *lua.LState) int {
for i, user := range users.Users {
userTable, err := userToLuaTable(l, user)
if err != nil {
l.RaiseError(err.Error())
l.RaiseError("failed to encode users: %s", err.Error())
return 0
}
usersTable.RawSetInt(i+1, userTable)
Expand Down Expand Up @@ -2919,7 +2919,7 @@ func (n *RuntimeLuaNakamaModule) usersGetUsername(l *lua.LState) int {
for i, user := range users.Users {
userTable, err := userToLuaTable(l, user)
if err != nil {
l.RaiseError(err.Error())
l.RaiseError("failed to encode users: %s", err.Error())
return 0
}
usersTable.RawSetInt(i+1, userTable)
Expand Down Expand Up @@ -3018,7 +3018,7 @@ func (n *RuntimeLuaNakamaModule) usersGetRandom(l *lua.LState) int {
for i, user := range users {
userTable, err := userToLuaTable(l, user)
if err != nil {
l.RaiseError(err.Error())
l.RaiseError("failed to encode users: %s", err.Error())
return 0
}
usersTable.RawSetInt(i+1, userTable)
Expand Down

0 comments on commit 4092921

Please sign in to comment.