aboutsummaryrefslogtreecommitdiff
path: root/internal
diff options
context:
space:
mode:
authorJakob Unterwurzacher2018-01-16 23:16:54 +0100
committerJakob Unterwurzacher2018-01-16 23:18:53 +0100
commit36ffd813cd04c6c43a7572ba5d71db4da8c2b060 (patch)
treece14d9060f40c35ea460ed37a1665b8df311bdc8 /internal
parent7d477d692b68a2be86ec66846fe23b2cfb15d3f0 (diff)
Run go fmt
Diffstat (limited to 'internal')
-rw-r--r--internal/fusefrontend_reverse/reverse_longnames.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/fusefrontend_reverse/reverse_longnames.go b/internal/fusefrontend_reverse/reverse_longnames.go
index 6a561d8..2b4324e 100644
--- a/internal/fusefrontend_reverse/reverse_longnames.go
+++ b/internal/fusefrontend_reverse/reverse_longnames.go
@@ -51,7 +51,7 @@ func initLongnameCache() {
// findLongnameParent converts "gocryptfs.longname.XYZ" to the plaintext name
func (rfs *ReverseFS) findLongnameParent(dir string, dirIV []byte, longname string) (plaintextName string, err error) {
longnameCacheLock.Lock()
- hit := longnameParentCache[dir + "/" + longname]
+ hit := longnameParentCache[dir+"/"+longname]
longnameCacheLock.Unlock()
if hit != "" {
return hit, nil
@@ -79,7 +79,7 @@ func (rfs *ReverseFS) findLongnameParent(dir string, dirIV []byte, longname stri
log.Panic("logic error or wrong shortNameMax constant?")
}
hName := rfs.nameTransform.HashLongName(cName)
- longnameParentCache[dir + "/" + hName] = plaintextName
+ longnameParentCache[dir+"/"+hName] = plaintextName
if longname == hName {
hit = plaintextName
}