mirror of
https://github.com/sjwhitworth/golearn.git
synced 2025-04-26 13:49:14 +08:00
edf: Removed unnecessary Sync()
This commit is contained in:
parent
ffc417b0fd
commit
c0d4140557
@ -334,7 +334,6 @@ func (e *EdfFile) truncate(size int64) error {
|
||||
// called will result in crashes.
|
||||
func (e *EdfFile) Unmap(flags int) error {
|
||||
// Sync the file
|
||||
e.Sync()
|
||||
if flags != EDF_UNMAP_NOSYNC {
|
||||
e.Sync()
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user