From 0760d4fb6495c4aa4f74038457acede5063f514a Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Mon, 31 Dec 2018 02:29:23 -0800 Subject: Fix for bug in nomsupath checking of input files. --- nomsu.lua | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) (limited to 'nomsu.lua') diff --git a/nomsu.lua b/nomsu.lua index e410bec..2f8856f 100644 --- a/nomsu.lua +++ b/nomsu.lua @@ -199,16 +199,8 @@ run = function() local nomsu_name = f:match("^nomsu://(.*)") if nomsu_name then for nomsupath in package.nomsupath:gmatch("[^;]+") do - local _continue_0 = false - repeat - files = Files.list(nomsupath .. "/" .. nomsu_name) - if not (files) then - _continue_0 = true - break - end - _continue_0 = true - until true - if not _continue_0 then + files = Files.list(nomsupath .. "/" .. nomsu_name) + if files then break end end -- cgit v1.2.3