Misc: little style changes

This commit is contained in:
bi 2018-06-21 10:20:27 +03:00
parent 35458fd7f3
commit 603f78b0c5

View file

@ -4,8 +4,7 @@ local vmf = get_mod("VMF")
-- ##### VMF internal functions and variables ##########################################################################
-- #####################################################################################################################
vmf.check_wrong_argument_type = function(mod, vmf_function_name, argument_name, argument, ...)
function vmf.check_wrong_argument_type(mod, vmf_function_name, argument_name, argument, ...)
local allowed_types = {...}
local argument_type = type(argument)
@ -15,8 +14,7 @@ vmf.check_wrong_argument_type = function(mod, vmf_function_name, argument_name,
end
end
mod:error("(%s): argument '%s' should have the '%s' type, not '%s'",
vmf_function_name, argument_name, table.concat(allowed_types, "/"), argument_type)
mod:error("(%s): argument '%s' should have the '%s' type, not '%s'", vmf_function_name, argument_name,
table.concat(allowed_types, "/"), argument_type)
return true
end