1
0
mirror of https://github.com/sjwhitworth/golearn.git synced 2025-04-28 13:48:56 +08:00

edf: Removed unnecessary Sync()

This commit is contained in:
Richard Townsend 2014-08-11 14:34:21 +01:00
parent ffc417b0fd
commit c0d4140557

View File

@ -334,7 +334,6 @@ func (e *EdfFile) truncate(size int64) error {
// called will result in crashes. // called will result in crashes.
func (e *EdfFile) Unmap(flags int) error { func (e *EdfFile) Unmap(flags int) error {
// Sync the file // Sync the file
e.Sync()
if flags != EDF_UNMAP_NOSYNC { if flags != EDF_UNMAP_NOSYNC {
e.Sync() e.Sync()
} }