aboutsummaryrefslogtreecommitdiffstats
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
parentUpdate README (#2447) (diff)
downloadnvim-treesitter-f42b8a9d10d66c5fd24cd4ef59760fef690a3beb.tar
nvim-treesitter-f42b8a9d10d66c5fd24cd4ef59760fef690a3beb.tar.gz
nvim-treesitter-f42b8a9d10d66c5fd24cd4ef59760fef690a3beb.tar.bz2
nvim-treesitter-f42b8a9d10d66c5fd24cd4ef59760fef690a3beb.tar.lz
nvim-treesitter-f42b8a9d10d66c5fd24cd4ef59760fef690a3beb.tar.xz
nvim-treesitter-f42b8a9d10d66c5fd24cd4ef59760fef690a3beb.tar.zst
nvim-treesitter-f42b8a9d10d66c5fd24cd4ef59760fef690a3beb.zip
ci: make io_print accept nil as input argument (#2445)
Convert nil to an empty string, which mimicks the behavior of standard print
-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 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