summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2019-08-21 23:24:48 +0800
committerruki <[email protected]>2019-08-21 14:28:50 +0800
commit7778679ae4c304f6388d80552aac0b893d5019da (patch)
treed7e7b6040c7902a937c5a3148d094c676ed48887
parentbb8580531e75a4ebd190126c442b61fe319044e3 (diff)
modify code styles
-rw-r--r--xmake/modules/private/action/run/make_runenvs.lua5
1 files changed, 2 insertions, 3 deletions
diff --git a/xmake/modules/private/action/run/make_runenvs.lua b/xmake/modules/private/action/run/make_runenvs.lua
index 91a6185d2..0f6bdd5d2 100644
--- a/xmake/modules/private/action/run/make_runenvs.lua
+++ b/xmake/modules/private/action/run/make_runenvs.lua
@@ -53,12 +53,12 @@ end
function main(target)
+ -- check
assert(target)
+ -- add run environments
local set = {}
local add = {}
-
- -- add run environments
local runenvs = target:get("runenvs")
if runenvs then
for name, values in pairs(runenvs) do
@@ -87,6 +87,5 @@ function main(target)
table.append(pathenv, table.unpack(runpath))
end
end
-
return add, set
end