linting: moar fixes

This commit is contained in:
Zach Ramsay
2017-10-03 19:11:55 -04:00
committed by Ethan Buchman
parent d7cb291fb2
commit a15c7f221d
8 changed files with 14 additions and 8 deletions

View File

@ -99,6 +99,9 @@ func (cs *ConsensusState) catchupReplay(csHeight int) error {
// NOTE: This is just a sanity check. As far as we know things work fine without it,
// and Handshake could reuse ConsensusState if it weren't for this check (since we can crash after writing ENDHEIGHT).
gr, found, err := cs.wal.SearchForEndHeight(uint64(csHeight))
if err != nil {
return err
}
if gr != nil {
if err := gr.Close(); err != nil {
return err