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 | Update README (#2447) (diff) | |
| download | nvim-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
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 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 |
