fix vscode lint warning

develop
Myk Taylor 2023-03-24 23:55:54 -07:00 committed by Kelly Kinkade
parent fe0590503f
commit 9f5e4eeda1
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