aboutsummaryrefslogtreecommitdiffstats
path: root/swarm/fuse
diff options
context:
space:
mode:
authorferhat elmas <elmas.ferhat@gmail.com>2017-11-11 01:06:45 +0800
committerPéter Szilágyi <peterke@gmail.com>2017-11-11 01:06:45 +0800
commit86f6568f6618945b19057553ec32690d723da982 (patch)
treeea7d9f92f3bcf5af22be1edfdbb302b5a5161f14 /swarm/fuse
parent3ee86a57f328530707974288e9db87b7c05283f9 (diff)
downloadgo-tangerine-86f6568f6618945b19057553ec32690d723da982.tar
go-tangerine-86f6568f6618945b19057553ec32690d723da982.tar.gz
go-tangerine-86f6568f6618945b19057553ec32690d723da982.tar.bz2
go-tangerine-86f6568f6618945b19057553ec32690d723da982.tar.lz
go-tangerine-86f6568f6618945b19057553ec32690d723da982.tar.xz
go-tangerine-86f6568f6618945b19057553ec32690d723da982.tar.zst
go-tangerine-86f6568f6618945b19057553ec32690d723da982.zip
build: enable unconvert linter (#15456)
* build: enable unconvert linter - fixes #15453 - update code base for failing cases * cmd/puppeth: replace syscall.Stdin with os.Stdin.Fd() for unconvert linter
Diffstat (limited to 'swarm/fuse')
-rw-r--r--swarm/fuse/fuse_file.go11
1 files changed, 6 insertions, 5 deletions
diff --git a/swarm/fuse/fuse_file.go b/swarm/fuse/fuse_file.go
index 32c85d02f..c94a0773f 100644
--- a/swarm/fuse/fuse_file.go
+++ b/swarm/fuse/fuse_file.go
@@ -19,15 +19,16 @@
package fuse
import (
+ "errors"
+ "io"
+ "os"
+ "sync"
+
"bazil.org/fuse"
"bazil.org/fuse/fs"
- "errors"
"github.com/ethereum/go-ethereum/log"
"github.com/ethereum/go-ethereum/swarm/storage"
"golang.org/x/net/context"
- "io"
- "os"
- "sync"
)
const (
@@ -87,7 +88,7 @@ func (file *SwarmFile) Attr(ctx context.Context, a *fuse.Attr) error {
if err != nil {
log.Warn("Couldnt get size of file %s : %v", file.path, err)
}
- file.fileSize = int64(size)
+ file.fileSize = size
}
a.Size = uint64(file.fileSize)
return nil