Skip to content

Commit

Permalink
Run go fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
rfjakob committed Jan 16, 2018
1 parent 7d477d6 commit 36ffd81
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/fusefrontend_reverse/reverse_longnames.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
}
Expand Down

0 comments on commit 36ffd81

Please sign in to comment.