From 8e757859d6a6bf6482480904e8485e9344e567ab Mon Sep 17 00:00:00 2001 From: rubenwardy Date: Tue, 6 Aug 2019 19:30:18 +0100 Subject: Add luacheck to check builtin (#7895) --- builtin/profiler/instrumentation.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'builtin/profiler') diff --git a/builtin/profiler/instrumentation.lua b/builtin/profiler/instrumentation.lua index 2ab658bb2..80eed05e8 100644 --- a/builtin/profiler/instrumentation.lua +++ b/builtin/profiler/instrumentation.lua @@ -117,7 +117,8 @@ end local function assert_can_be_called(func, func_name, level) if not can_be_called(func) then -- Then throw an *helpful* error, by pointing on our caller instead of us. - error(format("Invalid argument to %s. Expected function-like type instead of '%s'.", func_name, type(func)), level + 1) + error(format("Invalid argument to %s. Expected function-like type instead of '%s'.", + func_name, type(func)), level + 1) end end -- cgit v1.2.3