remove unreachable code

pull/241/head
adream307 2020-08-28 11:10:49 +08:00
parent f6be823028
commit ea42d394b8
1 changed files with 1 additions and 1 deletions

2
db.go
View File

@ -1129,7 +1129,7 @@ func (m *meta) validate() error {
return ErrInvalid
} else if m.version != version {
return ErrVersionMismatch
} else if m.checksum != 0 && m.checksum != m.sum64() {
} else if m.checksum != m.sum64() {
return ErrChecksum
}
return nil