mirror of
https://github.com/neovim/neovim.git
synced 2026-11-02 20:30:40 -06:00
test: simplify helpers.sysname()
This commit is contained in:
1 parent
26835d8d9c
commit
d735567fda
1 file changed
+1
-4
+1
-4
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user