Skip to content

Commit

Permalink
aghos: add type check
Browse files Browse the repository at this point in the history
  • Loading branch information
EugeneOne1 committed Jun 28, 2023
1 parent 781a3a2 commit a33a8e9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions internal/aghos/fswatcher.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@ type FSWatcher interface {
// nothing.
type EmptyWatcher struct{}

// type check
var _ FSWatcher = EmptyWatcher{}

// Close implements the [io.Closer] interface for EmptyWatcher.
func (EmptyWatcher) Close() (err error) { return nil }

Expand Down

0 comments on commit a33a8e9

Please sign in to comment.