aboutsummaryrefslogtreecommitdiff
path: root/test/helpers.lua
diff options
context:
space:
mode:
authorLewis Russell <lewis6991@gmail.com>2024-01-15 20:04:38 +0000
committerLewis Russell <lewis6991@gmail.com>2024-01-17 10:10:17 +0000
commitd735567fda158b55503a292561399ad97426ad8f (patch)
tree5d2d114a1d66baeed7ae9539098c6637f01629e0 /test/helpers.lua
parent26835d8d9cf1312d2851b191fe859c6f62d9d9d4 (diff)
downloadrneovim-d735567fda158b55503a292561399ad97426ad8f.tar.gz
rneovim-d735567fda158b55503a292561399ad97426ad8f.tar.bz2
rneovim-d735567fda158b55503a292561399ad97426ad8f.zip
test: simplify helpers.sysname()
Diffstat (limited to 'test/helpers.lua')
-rw-r--r--test/helpers.lua5
1 files changed, 1 insertions, 4 deletions
diff --git a/test/helpers.lua b/test/helpers.lua
index f0cb395c89..45b39d10b2 100644
--- a/test/helpers.lua
+++ b/test/helpers.lua
@@ -369,10 +369,7 @@ function module.check_logs()
end
function module.sysname()
- local platform = uv.os_uname()
- if platform and platform.sysname then
- return platform.sysname:lower()
- end
+ return uv.os_uname().sysname:lower()
end
function module.is_os(s)