Skip to content

Commit

Permalink
Do not call the function itself to check if it exists (2)
Browse files Browse the repository at this point in the history
Co-authored-by: luk3yx <[email protected]>
  • Loading branch information
Athozus and luk3yx authored Aug 7, 2024
1 parent 8753c92 commit 58604e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion migrate.lua
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ end
local function repair_storage()
-- iterate through players
-- get_keys() was introduced in 5.7
if mail.storage:get_keys() then
if mail.storage.get_keys then
for _, k in ipairs(mail.storage:get_keys()) do
if string.sub(k,1,5) == "mail/" then
local p = string.sub(k, 6)
Expand Down

0 comments on commit 58604e4

Please sign in to comment.