Skip to content

Commit e8dd3c3

Browse files
committed
try fix unittests in Linux-x64
1 parent dd9cd6b commit e8dd3c3

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

script/filewatch.lua

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@ m._eventList = {}
2929
m._watchings = {}
3030

3131
function m.watch(path)
32+
if path == '' then
33+
return function () end
34+
end
3235
if m._watchings[path] then
3336
m._watchings[path].count = m._watchings[path].count + 1
3437
else

0 commit comments

Comments
 (0)