We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ef5a3a0 commit c5a89e3Copy full SHA for c5a89e3
1 file changed
src/Utility.lua
@@ -19,7 +19,7 @@ function Utility.switch(condition, cases, strict)
19
local specifiedCase = nil
20
for caseCondition in pairs(cases) do
21
if caseCondition == condition then
22
- specifiedCase = caseCondition
+ specifiedCase = cases[caseCondition]
23
break
24
end
25
0 commit comments