summaryrefslogtreecommitdiff
path: root/xmake/plugins/lua/main.lua
diff options
context:
space:
mode:
authorSaikari <[email protected]>2026-02-01 16:14:46 +0300
committerSaikari <[email protected]>2026-02-01 16:14:46 +0300
commitfaca264f8ea0fb695f6bc8b3a9d1411f901f054b (patch)
tree33ea177b8dcc1fd70bc41fcc56e47cc13a593b08 /xmake/plugins/lua/main.lua
parent9d45443b6cf3a6bb2a0e0f6ab30347cb826c700d (diff)
refactor: simplify stdin handling by removing redundant checks and streamlining usage examples
Diffstat (limited to 'xmake/plugins/lua/main.lua')
-rw-r--r--xmake/plugins/lua/main.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/plugins/lua/main.lua b/xmake/plugins/lua/main.lua
index 1cc13dbc3..247684e24 100644
--- a/xmake/plugins/lua/main.lua
+++ b/xmake/plugins/lua/main.lua
@@ -60,7 +60,7 @@ function main()
-- run script from stdin?
local script_file_to_remove
- if script == "-" or from_stdin then
+ if from_stdin then
local script_content = io.read("*a")
if script_content then
-- remove utf8 bom