aboutsummaryrefslogtreecommitdiffhomepage
path: root/watcher
diff options
context:
space:
mode:
authorAndreas Deininger <[email protected]>2023-03-10 20:18:41 +0100
committerBjørn Erik Pedersen <[email protected]>2023-03-12 10:32:29 +0100
commitd55af2abf0548e627998d3905cfdec5b7b8f7ec3 (patch)
tree1d5a8ce9decb09badff02a2b942886831d1783e2 /watcher
parentb6f44aaf1a5b80943e553bda2282d971e00e3d48 (diff)
downloadhugo-d55af2abf0548e627998d3905cfdec5b7b8f7ec3.tar.gz
hugo-d55af2abf0548e627998d3905cfdec5b7b8f7ec3.zip
Run gofmt -s on source files
Diffstat (limited to 'watcher')
-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
}