Skip to content

Commit

Permalink
Removed unnecessary loop.
Browse files Browse the repository at this point in the history
  • Loading branch information
ljmccarthy committed Aug 5, 2014
1 parent 3c7957e commit 6f43a1d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions fsmonitor/win32.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,8 +175,7 @@ def read_events(self, timeout=None):
with self.__lock:
watch = self.__key_to_watch.get(key)
if watch is not None and watch.enabled and not watch._removed:
for evt in process_events(watch, num):
events.append(evt)
events.extend(process_events(watch, num))
elif rc == 5:
with self.__lock:
watch = self.__key_to_watch.get(key)
Expand Down

0 comments on commit 6f43a1d

Please sign in to comment.