mirror of
https://github.com/neovim/neovim.git
synced 2024-12-19 18:55:14 -07:00
test: simplify helpers.sysname()
This commit is contained in:
parent
26835d8d9c
commit
d735567fda
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user