Skip to content

Commit 74b63d3

Browse files
committed
Explicit return nil
1 parent 859d495 commit 74b63d3

2 files changed

Lines changed: 5 additions & 0 deletions

File tree

‎CSharp.lua/CoreSystem.Lua/CoreSystem/Array.lua‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -490,6 +490,7 @@ Array = {
490490
if v ~= null then
491491
return v
492492
end
493+
return nil
493494
end,
494495
insert = function (t, index, v)
495496
if index < 0 or index > #t then
@@ -532,6 +533,7 @@ Array = {
532533
if v ~= null then
533534
return v
534535
end
536+
return nil
535537
end,
536538
popFirst = function (t)
537539
if #t == 0 then throw(InvalidOperationException()) end
@@ -541,6 +543,7 @@ Array = {
541543
if v ~= null then
542544
return v
543545
end
546+
return nil
544547
end,
545548
popLast = function (t)
546549
local n = #t
@@ -550,6 +553,7 @@ Array = {
550553
if v ~= null then
551554
return v
552555
end
556+
return nil
553557
end,
554558
removeRange = removeRange,
555559
remove = function (t, v)

‎CSharp.lua/CoreSystem.Lua/CoreSystem/Collections/Dictionary.lua‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -369,6 +369,7 @@ local Dictionary = {
369369
if value ~= null then
370370
return value
371371
end
372+
return nil
372373
end,
373374
set = function (this, key, value)
374375
if key == nil then throw(ArgumentNullException("key")) end

0 commit comments

Comments
 (0)