Merge pull request #241 from adream307/master

remove unreachable code
pull/358/head
Piotr Tabor 2022-12-21 22:05:57 +01:00 committed by GitHub
commit 1231aef645
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

2
db.go
View File

@ -1187,7 +1187,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