forked from TrueCloudLab/rclone
vfs: Remove uneeded locking from read write handle String()
This commit is contained in:
parent
40fe97e946
commit
05bc19c331
1 changed files with 0 additions and 2 deletions
|
@ -184,8 +184,6 @@ func (fh *RWFileHandle) String() string {
|
||||||
if fh == nil {
|
if fh == nil {
|
||||||
return "<nil *RWFileHandle>"
|
return "<nil *RWFileHandle>"
|
||||||
}
|
}
|
||||||
fh.mu.Lock()
|
|
||||||
defer fh.mu.Unlock()
|
|
||||||
if fh.file == nil {
|
if fh.file == nil {
|
||||||
return "<nil *RWFileHandle.file>"
|
return "<nil *RWFileHandle.file>"
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue