2
0
mirror of synced 2025-02-24 14:48:27 +00:00

Put interface assertion next to the asserted type

This commit is contained in:
Matt Joiner 2014-05-23 00:38:07 +10:00
parent 763e387c62
commit 51cbfdf676

View File

@ -21,6 +21,8 @@ type torrentFS struct {
mu sync.Mutex mu sync.Mutex
} }
var _ fusefs.FSDestroyer = &torrentFS{}
var _ fusefs.NodeForgetter = rootNode{} var _ fusefs.NodeForgetter = rootNode{}
type rootNode struct { type rootNode struct {
@ -236,8 +238,6 @@ func (me *torrentFS) Destroy() {
me.mu.Unlock() me.mu.Unlock()
} }
var _ fusefs.FSDestroyer = &torrentFS{}
func New(cl *torrent.Client) *torrentFS { func New(cl *torrent.Client) *torrentFS {
fs := &torrentFS{ fs := &torrentFS{
Client: cl, Client: cl,