Put interface assertion next to the asserted type
This commit is contained in:
parent
763e387c62
commit
51cbfdf676
@ -21,6 +21,8 @@ type torrentFS struct {
|
||||
mu sync.Mutex
|
||||
}
|
||||
|
||||
var _ fusefs.FSDestroyer = &torrentFS{}
|
||||
|
||||
var _ fusefs.NodeForgetter = rootNode{}
|
||||
|
||||
type rootNode struct {
|
||||
@ -236,8 +238,6 @@ func (me *torrentFS) Destroy() {
|
||||
me.mu.Unlock()
|
||||
}
|
||||
|
||||
var _ fusefs.FSDestroyer = &torrentFS{}
|
||||
|
||||
func New(cl *torrent.Client) *torrentFS {
|
||||
fs := &torrentFS{
|
||||
Client: cl,
|
||||
|
Loading…
x
Reference in New Issue
Block a user