ci: make io_print accept nil as input argument (#2445)

Convert nil to an empty string, which mimicks the behavior of standard
print
This commit is contained in:
dundargoc 2022-02-04 12:02:01 +01:00 committed by GitHub
parent aefabaa1d4
commit f42b8a9d10
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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