From 603f78b0c5fabfab0134ba4de23408c773e09b13 Mon Sep 17 00:00:00 2001 From: bi Date: Thu, 21 Jun 2018 10:20:27 +0300 Subject: [PATCH] Misc: little style changes --- vmf/scripts/mods/vmf/modules/core/misc.lua | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/vmf/scripts/mods/vmf/modules/core/misc.lua b/vmf/scripts/mods/vmf/modules/core/misc.lua index c09e09e..3d45c99 100644 --- a/vmf/scripts/mods/vmf/modules/core/misc.lua +++ b/vmf/scripts/mods/vmf/modules/core/misc.lua @@ -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 \ No newline at end of file