summaryrefslogtreecommitdiffstats
path: root/watcher/filenotify/poller.go
diff options
context:
space:
mode:
Diffstat (limited to 'watcher/filenotify/poller.go')
-rw-r--r--watcher/filenotify/poller.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/watcher/filenotify/poller.go b/watcher/filenotify/poller.go
index 7479dcbdd..91e1e21b8 100644
--- a/watcher/filenotify/poller.go
+++ b/watcher/filenotify/poller.go
@@ -268,7 +268,7 @@ func (item *itemToWatch) checkForChanges() ([]fsnotify.Event, error) {
dirOp := checkChange(item.left.FileInfo, item.right.FileInfo)
if dirOp != 0 {
- evs := []fsnotify.Event{fsnotify.Event{Op: dirOp, Name: item.filename}}
+ evs := []fsnotify.Event{{Op: dirOp, Name: item.filename}}
return evs, nil
}