Skip to content

Commit 9f3251d

Browse files
Update formatting
1 parent 21410ce commit 9f3251d

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

pkg/fswatch/fswatch.go

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,10 +55,10 @@ func New(pollInterval time.Duration, dir string) (*Watcher, error) {
5555

5656
// Watch starts watching the directory for file changes.
5757
func (w *Watcher) Watch() error {
58-
w.wg.Add(1)
59-
go func () {
58+
w.wg.Add(1)
59+
go func() {
6060
defer w.wg.Done()
61-
w.runPolling()
61+
w.runPolling()
6262
}()
6363

6464
return nil
@@ -95,7 +95,6 @@ func (w *Watcher) runPolling() {
9595

9696
// scanDirectory scans the watch directory and detects changes
9797
func (w *Watcher) scanDirectory(initial bool) {
98-
9998
entries, err := fs.ReadDir(w.fileSystem, ".")
10099
if err != nil {
101100
w.errors <- err

0 commit comments

Comments
 (0)