diff options
author | Jakob Unterwurzacher | 2018-06-19 20:13:56 +0200 |
---|---|---|
committer | Jakob Unterwurzacher | 2018-06-19 20:16:21 +0200 |
commit | 1bab400fcafb17e33dfc5098634cb1a336546d4f (patch) | |
tree | 2a45ef33c3b915c3adb15f85936ceb8cf33f8ed2 /internal/fusefrontend/fs.go | |
parent | 009cc0ae8be9322e4c5b10050db3eb0495c674e6 (diff) |
Fix three golint warnings
We are clean again.
Warnings were:
internal/fusefrontend/fs.go:443:14: should omit type string from declaration
of var cTarget; it will be inferred from the right-hand side
internal/fusefrontend/xattr.go:26:1: comment on exported method FS.GetXAttr
should be of the form "GetXAttr ..."
internal/syscallcompat/sys_common.go:9:7: exported const PATH_MAX should have
comment or be unexported
Diffstat (limited to 'internal/fusefrontend/fs.go')
-rw-r--r-- | internal/fusefrontend/fs.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/fusefrontend/fs.go b/internal/fusefrontend/fs.go index 8a3935f..582e6a1 100644 --- a/internal/fusefrontend/fs.go +++ b/internal/fusefrontend/fs.go @@ -440,7 +440,7 @@ func (fs *FS) Symlink(target string, linkName string, context *fuse.Context) (co return fuse.ToStatus(err) } defer dirfd.Close() - var cTarget string = target + cTarget := target if !fs.args.PlaintextNames { // Symlinks are encrypted like file contents (GCM) and base64-encoded cTarget = fs.encryptSymlinkTarget(target) |