]> Sergey Matveev's repositories - btrtrc.git/commitdiff
Put interface assertion next to the asserted type
authorMatt Joiner <anacrolix@gmail.com>
Thu, 22 May 2014 14:38:07 +0000 (00:38 +1000)
committerMatt Joiner <anacrolix@gmail.com>
Thu, 22 May 2014 14:38:07 +0000 (00:38 +1000)
fs/torrentfs.go

index a6fb6e5812b7c8bb4945337166a90543b3bcbad8..7a00f28806a7bef86bbd3e8c77dd921dddb8b491 100644 (file)
@@ -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,