summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSaikari <[email protected]>2026-07-26 22:54:19 +0300
committerruki <[email protected]>2026-07-30 10:17:31 +0800
commitd576e545908a520628d6823c4bd210d22458598e (patch)
treed50e9dde48e8172dd6996049198a8a03892312b7
parent21f1b0efbf5441e5ec82a2caa84984a77ad7e7eb (diff)
Remove unnecessary blank lines in various Lua files for cleaner code
-rw-r--r--xmake/core/package/package.lua2
-rw-r--r--xmake/modules/private/action/require/impl/actions/install.lua3
-rw-r--r--xmake/modules/private/action/require/impl/repository.lua1
-rw-r--r--xmake/modules/private/action/require/search.lua3
-rw-r--r--xmake/plugins/plugin/main.lua1
5 files changed, 2 insertions, 8 deletions
diff --git a/xmake/core/package/package.lua b/xmake/core/package/package.lua
index 7a919f9aa..0d164ce95 100644
--- a/xmake/core/package/package.lua
+++ b/xmake/core/package/package.lua
@@ -584,7 +584,6 @@ end
-- - binary
-- - toolchain (is also binary)
-- - library(default)
--- - template
--
function _instance:kind()
local kind
@@ -624,7 +623,6 @@ function _instance:is_template()
return self:kind() == "template"
end
-
-- is header-only library?
--
-- @return true if the package kind is "headeronly"
diff --git a/xmake/modules/private/action/require/impl/actions/install.lua b/xmake/modules/private/action/require/impl/actions/install.lua
index 82df01a84..7fb54a951 100644
--- a/xmake/modules/private/action/require/impl/actions/install.lua
+++ b/xmake/modules/private/action/require/impl/actions/install.lua
@@ -513,7 +513,6 @@ function main(package)
end
assert(fetchinfo, "fetch %s failed!", package_tipname)
-
-- this package is installed now
if installed_now then
@@ -529,7 +528,6 @@ function main(package)
test(package)
end
-
-- leave the package environments
os.setenvs(oldenvs)
@@ -559,7 +557,6 @@ function main(package)
-- leave the package environments
os.setenvs(oldenvs)
-
-- copy the invalid package directory to cache
local installdir = package:installdir()
if os.isdir(installdir) then
diff --git a/xmake/modules/private/action/require/impl/repository.lua b/xmake/modules/private/action/require/impl/repository.lua
index bfec451a8..3df59c42c 100644
--- a/xmake/modules/private/action/require/impl/repository.lua
+++ b/xmake/modules/private/action/require/impl/repository.lua
@@ -27,7 +27,6 @@ import("core.package.repository")
import("devel.git")
import("net.proxy")
-
-- get package directory from the locked repository
function _get_packagedir_from_locked_repo(packagename, locked_repo)
diff --git a/xmake/modules/private/action/require/search.lua b/xmake/modules/private/action/require/search.lua
index d839b92cb..e714c6c19 100644
--- a/xmake/modules/private/action/require/search.lua
+++ b/xmake/modules/private/action/require/search.lua
@@ -41,12 +41,11 @@ function main(names)
task.run("repo", {update = true})
end
-
-- show title
print("The package names:")
-- search packages
- for name, packages in pairs(search_packages(names, opt)) do
+ for name, packages in pairs(search_packages(names)) do
if #packages > 0 then
-- show name
diff --git a/xmake/plugins/plugin/main.lua b/xmake/plugins/plugin/main.lua
index 276508396..e1525d51c 100644
--- a/xmake/plugins/plugin/main.lua
+++ b/xmake/plugins/plugin/main.lua
@@ -128,6 +128,7 @@ end
-- update plugins
function _update()
+
-- enter environment
environment.enter()