From 51cbfdf676cc2f83a8ed6e8f3861d73ba61b83ad Mon Sep 17 00:00:00 2001 From: Matt Joiner Date: Fri, 23 May 2014 00:38:07 +1000 Subject: [PATCH] Put interface assertion next to the asserted type --- fs/torrentfs.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fs/torrentfs.go b/fs/torrentfs.go index a6fb6e58..7a00f288 100644 --- a/fs/torrentfs.go +++ b/fs/torrentfs.go @@ -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, -- 2.48.1