summaryrefslogtreecommitdiff
path: root/scripts/check-queries.lua
diff options
context:
space:
mode:
authordundargoc <33953936+dundargoc@users.noreply.github.com>2022-02-04 12:02:01 +0100
committerGitHub <noreply@github.com>2022-02-04 12:02:01 +0100
commitf42b8a9d10d66c5fd24cd4ef59760fef690a3beb (patch)
tree65f5e0ab3f716266362f8b3bce6ec9c1ae44d968 /scripts/check-queries.lua
parentaefabaa1d4216fae4662f7557a0e8d8755836c62 (diff)
ci: make io_print accept nil as input argument (#2445)
Convert nil to an empty string, which mimicks the behavior of standard print
Diffstat (limited to 'scripts/check-queries.lua')
-rwxr-xr-xscripts/check-queries.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/scripts/check-queries.lua b/scripts/check-queries.lua
index 1cda6913..3397a998 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