mirror of
https://github.com/rclone/rclone.git
synced 2024-11-22 14:22:04 +08:00
vfs: Remove uneeded locking from read write handle String()
This commit is contained in:
parent
40fe97e946
commit
05bc19c331
|
@ -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 New Issue
Block a user