diff options
| -rw-r--r-- | nomsu.lua | 12 | ||||
| -rwxr-xr-x | nomsu.moon | 2 |
2 files changed, 3 insertions, 11 deletions
@@ -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 @@ -125,7 +125,7 @@ run = -> if nomsu_name = f\match("^nomsu://(.*)") for nomsupath in package.nomsupath\gmatch("[^;]+") files = Files.list(nomsupath.."/"..nomsu_name) - continue unless files + break if files else files = Files.list(f) unless files and #files > 0 |
