From d0a40762fa747d9d27f9eeda460a9e91806707f7 Mon Sep 17 00:00:00 2001 From: Joel Verhagen Date: Fri, 5 Jan 2024 11:15:13 -0500 Subject: [PATCH] Fix Linq.Single with predicate --- CSharp.lua/CoreSystem.Lua/CoreSystem/Collections/Linq.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CSharp.lua/CoreSystem.Lua/CoreSystem/Collections/Linq.lua b/CSharp.lua/CoreSystem.Lua/CoreSystem/Collections/Linq.lua index 14c69c6a..6e170a4c 100644 --- a/CSharp.lua/CoreSystem.Lua/CoreSystem/Collections/Linq.lua +++ b/CSharp.lua/CoreSystem.Lua/CoreSystem/Collections/Linq.lua @@ -1019,7 +1019,7 @@ local function single(source, ...) found = true end end - if foun then return true, result end + if found then return true, result end return false, 0 end end