Port more code over to use strict

This commit is contained in:
Lucien Greathouse
2019-10-01 17:13:43 -07:00
parent 15e848d4bf
commit 581449d992
3 changed files with 7 additions and 19 deletions

View File

@@ -1,3 +1,5 @@
local strict = require(script.Parent.strict)
local Assets = {
Sprites = {},
Slices = {
@@ -18,11 +20,7 @@ local Assets = {
}
local function guardForTypos(name, map)
setmetatable(map, {
__index = function(_, key)
error(("%q is not a valid member of %s"):format(tostring(key), name), 2)
end
})
strict(name, map)
for key, child in pairs(map) do
if type(child) == "table" then