wal: simplify dir.Close call

release-3.1
Gyu-Ho Lee 2016-09-09 09:23:55 +09:00
parent 0b675845f6
commit ccb46d2024
1 changed files with 1 additions and 5 deletions

View File

@ -507,11 +507,7 @@ func (w *WAL) Close() error {
}
}
if err := w.dirFile.Close(); err != nil {
return err
}
return nil
return w.dirFile.Close()
}
func (w *WAL) saveEntry(e *raftpb.Entry) error {