mirror of
https://github.com/TangentFoxy/lurker.git
synced 2025-07-28 02:52:18 +00:00
Moved hotswap code to lurker.hotswapfile()
This commit is contained in:
@@ -174,8 +174,7 @@ function lurker.exiterrorstate()
|
||||
end
|
||||
|
||||
|
||||
function lurker.scan()
|
||||
for _, f in pairs(lurker.getchanged()) do
|
||||
function lurker.hotswapfile(f)
|
||||
lurker.print("Hotswapping '{1}'...", {f})
|
||||
if lurker.state == "error" then
|
||||
lurker.exiterrorstate()
|
||||
@@ -193,7 +192,11 @@ function lurker.scan()
|
||||
if lurker.protected then
|
||||
lurker.updatewrappers()
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
function lurker.scan()
|
||||
lume.each(lurker.getchanged(), lurker.hotswapfile)
|
||||
end
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user