fix vscode lint warning

develop
Myk Taylor 2023-03-24 23:55:54 -07:00
parent 63e022f955
commit a1c2df23c5
No known key found for this signature in database
1 changed files with 1 additions and 1 deletions

@ -770,7 +770,7 @@ function dfhack.run_script_with_env(envVars, name, flags, ...)
elseif ((type(v.required) == 'boolean' and v.required) or elseif ((type(v.required) == 'boolean' and v.required) or
(type(v.required) == 'function' and v.required(flags))) then (type(v.required) == 'function' and v.required(flags))) then
if not script_flags[flag] then if not script_flags[flag] then
local msg = v.error or 'Flag "' .. flag .. '" not recognized' local msg = v.error or ('Flag "' .. flag .. '" not recognized')
error(name .. ': ' .. msg) error(name .. ': ' .. msg)
end end
end end