Run go fmt
This commit is contained in:
parent
7d477d692b
commit
36ffd813cd
@ -51,7 +51,7 @@ func initLongnameCache() {
|
|||||||
// findLongnameParent converts "gocryptfs.longname.XYZ" to the plaintext name
|
// findLongnameParent converts "gocryptfs.longname.XYZ" to the plaintext name
|
||||||
func (rfs *ReverseFS) findLongnameParent(dir string, dirIV []byte, longname string) (plaintextName string, err error) {
|
func (rfs *ReverseFS) findLongnameParent(dir string, dirIV []byte, longname string) (plaintextName string, err error) {
|
||||||
longnameCacheLock.Lock()
|
longnameCacheLock.Lock()
|
||||||
hit := longnameParentCache[dir + "/" + longname]
|
hit := longnameParentCache[dir+"/"+longname]
|
||||||
longnameCacheLock.Unlock()
|
longnameCacheLock.Unlock()
|
||||||
if hit != "" {
|
if hit != "" {
|
||||||
return hit, nil
|
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?")
|
log.Panic("logic error or wrong shortNameMax constant?")
|
||||||
}
|
}
|
||||||
hName := rfs.nameTransform.HashLongName(cName)
|
hName := rfs.nameTransform.HashLongName(cName)
|
||||||
longnameParentCache[dir + "/" + hName] = plaintextName
|
longnameParentCache[dir+"/"+hName] = plaintextName
|
||||||
if longname == hName {
|
if longname == hName {
|
||||||
hit = plaintextName
|
hit = plaintextName
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user