Skip to content

Commit 9d2c813

Browse files
committed
fix(utils): fix global function
Fix wrong return in `GetScriptGlobalOrLocal`
1 parent 8c309ab commit 9d2c813

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

SmallBase/includes/lib/utils.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ function GetScriptGlobalOrLocal(name, get_full_table)
100100
local map = { [eAPIVersion.V1] = "LEGACY", [eAPIVersion.V2] = "ENHANCED" }
101101
local ret = T[map[Backend:GetAPIVersion()]] or T.LEGACY
102102
---@diagnostic disable-next-line: return-type-mismatch
103-
return not get_full_table and ret or ret.value
103+
return get_full_table and ret or ret.value
104104
end
105105

106106
-- Lua version of Bob Jenskins' "Jenkins One At A Time" hash function

0 commit comments

Comments
 (0)