From 46e3ad09b7144edc59c66616004bcc89ffa3f244 Mon Sep 17 00:00:00 2001 From: ruki Date: Wed, 20 Nov 2024 23:39:58 +0800 Subject: format find_wine --- xmake/modules/detect/tools/find_wine.lua | 6 ------ 1 file changed, 6 deletions(-) diff --git a/xmake/modules/detect/tools/find_wine.lua b/xmake/modules/detect/tools/find_wine.lua index 05119a88d..19481f320 100644 --- a/xmake/modules/detect/tools/find_wine.lua +++ b/xmake/modules/detect/tools/find_wine.lua @@ -36,19 +36,13 @@ import("lib.detect.find_programver") -- @endcode -- function main(opt) - -- init options opt = opt or {} - - -- find program local program = find_program(opt.program or "wine", opt) - -- find program version local version = nil if program and opt and opt.version then opt.parse = opt.parse or "wine%-(%d+%.%d+%.%d+)" version = find_programver(program, opt) end - - -- ok? return program, version end -- cgit v1.3.1