Skip to content

Commit

Permalink
Revert "libs: warn user abpit duplicate storage value (#3072)" (#3089)
Browse files Browse the repository at this point in the history
This reverts commit d26ee0b.
  • Loading branch information
Znote authored Jun 15, 2020
1 parent e2c8ced commit d37e264
Showing 1 changed file with 0 additions and 19 deletions.
19 changes: 0 additions & 19 deletions data/lib/core/storages.lua
Original file line number Diff line number Diff line change
Expand Up @@ -25,22 +25,3 @@ PlayerStorageKeys = {

GlobalStorageKeys = {
}

-- Checking for duplicate storages:
local function extractValues(tab, ret)
for _, v in pairs(tab) do
table.insert(ret, tab)
end
end

local extraction = {}
extractValues(PlayerStorageKeys, extraction)
table.sort(extraction)

if #extraction > 1 then
for i = 1, #extraction - 1 do
if extraction[i] == extraction[i+1] then
print("Duplicate storage value found: ".. extraction[i])
end
end
end

1 comment on commit d37e264

@Znote
Copy link
Member Author

@Znote Znote commented on d37e264 Jun 15, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fix #3090

Please sign in to comment.