Skip to content

Commit

Permalink
refactor: drop fsnotify watcher guard for unsupported platforms
Browse files Browse the repository at this point in the history
As of fsnotify 1.6.0 all unsupported platforms should compile
with a non-functional shim.

Signed-off-by: Mark Sagi-Kazar <mark.sagikazar@gmail.com>
  • Loading branch information
sagikazarmark committed Nov 3, 2022
1 parent b274f63 commit 673d55e
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 43 deletions.
2 changes: 1 addition & 1 deletion viper.go
Expand Up @@ -432,7 +432,7 @@ func (v *Viper) WatchConfig() {
initWG := sync.WaitGroup{}
initWG.Add(1)
go func() {
watcher, err := newWatcher()
watcher, err := fsnotify.NewWatcher()
if err != nil {
log.Fatal(err)
}
Expand Down
12 changes: 0 additions & 12 deletions watch.go

This file was deleted.

30 changes: 0 additions & 30 deletions watch_wasm.go

This file was deleted.

0 comments on commit 673d55e

Please sign in to comment.