diff options
| author | dundargoc <33953936+dundargoc@users.noreply.github.com> | 2022-02-04 12:02:01 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-02-04 12:02:01 +0100 |
| commit | f42b8a9d10d66c5fd24cd4ef59760fef690a3beb (patch) | |
| tree | 65f5e0ab3f716266362f8b3bce6ec9c1ae44d968 /scripts/check-queries.lua | |
| parent | aefabaa1d4216fae4662f7557a0e8d8755836c62 (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-x | scripts/check-queries.lua | 3 |
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 |
