diff options
author | dundargoc <gocdundar@gmail.com> | 2023-12-13 14:04:24 +0100 |
---|---|---|
committer | dundargoc <33953936+dundargoc@users.noreply.github.com> | 2023-12-30 17:40:53 +0100 |
commit | d51b6157473c4830313b566116aa3ad38dc97412 (patch) | |
tree | 28092346ddec03f9cb7d924313c991ca2e1077d6 /test/functional/helpers.lua | |
parent | bf0be0f63e7142675f1376781c128116d12c520d (diff) | |
download | rneovim-d51b6157473c4830313b566116aa3ad38dc97412.tar.gz rneovim-d51b6157473c4830313b566116aa3ad38dc97412.tar.bz2 rneovim-d51b6157473c4830313b566116aa3ad38dc97412.zip |
refactor: fix luals warnings
Diffstat (limited to 'test/functional/helpers.lua')
-rw-r--r-- | test/functional/helpers.lua | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/test/functional/helpers.lua b/test/functional/helpers.lua index 2e1f196226..a852e8cc08 100644 --- a/test/functional/helpers.lua +++ b/test/functional/helpers.lua @@ -65,10 +65,7 @@ if os.getenv('VALGRIND') then table.insert(prepend_argv, '--vgdb-error=0') end elseif os.getenv('GDB') then - local gdbserver_port = '7777' - if os.getenv('GDBSERVER_PORT') then - gdbserver_port = os.getenv('GDBSERVER_PORT') - end + local gdbserver_port = os.getenv('GDBSERVER_PORT') or '7777' prepend_argv = {'gdbserver', 'localhost:'..gdbserver_port} end |