From f42b8a9d10d66c5fd24cd4ef59760fef690a3beb Mon Sep 17 00:00:00 2001 From: dundargoc <33953936+dundargoc@users.noreply.github.com> Date: Fri, 4 Feb 2022 12:02:01 +0100 Subject: ci: make io_print accept nil as input argument (#2445) Convert nil to an empty string, which mimicks the behavior of standard print --- scripts/check-queries.lua | 3 +++ 1 file changed, 3 insertions(+) (limited to 'scripts/check-queries.lua') diff --git a/scripts/check-queries.lua b/scripts/check-queries.lua index 1cda6913e..3397a9988 100755 --- a/scripts/check-queries.lua +++ b/scripts/check-queries.lua @@ -3,6 +3,9 @@ -- Equivalent to print(), but this will ensure consistent output regardless of -- operating system. local function io_print(text) + if not text then + text = "" + end io.write(text, "\n") end -- cgit v1.2.3-70-g09d2