From ea42d394b8266f7679155be6dfb89557fe1b7d11 Mon Sep 17 00:00:00 2001 From: adream307 Date: Fri, 28 Aug 2020 11:10:49 +0800 Subject: [PATCH] remove unreachable code --- db.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/db.go b/db.go index 80b0095..3ca8e42 100644 --- a/db.go +++ b/db.go @@ -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