From faca264f8ea0fb695f6bc8b3a9d1411f901f054b Mon Sep 17 00:00:00 2001 From: Saikari Date: Sun, 1 Feb 2026 16:14:46 +0300 Subject: refactor: simplify stdin handling by removing redundant checks and streamlining usage examples --- xmake/plugins/lua/main.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'xmake/plugins/lua/main.lua') 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 -- cgit v1.3.1