Skip to content

Commit

Permalink
wal: fix error type
Browse files Browse the repository at this point in the history
  • Loading branch information
gyuho committed Sep 9, 2016
1 parent 7071370 commit fe3a1cc
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions wal/wal.go
Original file line number Diff line number Diff line change
Expand Up @@ -504,12 +504,7 @@ func (w *WAL) Close() error {
plog.Errorf("failed to unlock during closing wal: %s", err)
}
}

if err := w.dirFile.Close(); err != nil {
return err
}

return nil
return w.dirFile.Close()
}

func (w *WAL) saveEntry(e *raftpb.Entry) error {
Expand Down

0 comments on commit fe3a1cc

Please sign in to comment.