From d735567fda158b55503a292561399ad97426ad8f Mon Sep 17 00:00:00 2001 From: Lewis Russell Date: Mon, 15 Jan 2024 20:04:38 +0000 Subject: [PATCH] test: simplify helpers.sysname() --- test/helpers.lua | 5 +---- 1 file changed, 1 insertion(+), 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)