mirror of https://github.com/fail2ban/fail2ban
should fix sporadic coverage decrease (don't cover "return", because too sporadic to get idle in pyinotify-callback);
parent
7516cd025d
commit
b644d2d73f
|
@ -123,7 +123,7 @@ class FilterPyinotify(FileFilter):
|
||||||
self._addPending(path, event)
|
self._addPending(path, event)
|
||||||
return
|
return
|
||||||
# do nothing if idle:
|
# do nothing if idle:
|
||||||
if self.idle:
|
if self.idle: # pragma: no cover (too sporadic to get idle in callback)
|
||||||
return
|
return
|
||||||
# be sure we process a file:
|
# be sure we process a file:
|
||||||
if not isWF:
|
if not isWF:
|
||||||
|
|
Loading…
Reference in New Issue