Merge pull request #1221 from WorldofBay/patch-1

add nil check to fileconfig.hasFileSetting (gmake)
This commit is contained in:
Samuel Surtees 2019-01-10 18:41:09 +10:00 committed by GitHub
commit e05e66a4fc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -186,6 +186,9 @@
--
function fileconfig.hasFileSettings(fcfg)
if not fcfg then
return false
end
for key, field in pairs(p.fields) do
if field.scopes[1] == "config" then
local value = fcfg[field.name]