From 108dc5525bb67c50ad5105375aad7459f11298d7 Mon Sep 17 00:00:00 2001 From: David Hill Date: Thu, 28 Mar 2019 19:26:25 -0400 Subject: [PATCH] govet: remove checks where flushRecord can only be one value. --- dcrtimed/backend/filesystem/fsck.go | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/dcrtimed/backend/filesystem/fsck.go b/dcrtimed/backend/filesystem/fsck.go index fd78294..f09fd1a 100644 --- a/dcrtimed/backend/filesystem/fsck.go +++ b/dcrtimed/backend/filesystem/fsck.go @@ -311,11 +311,6 @@ func (fs *FileSystem) fsckTimestamp(options *backend.FsckOptions, ts int64, empt // The bug that caused this has since been fixed. fmt.Printf(" *** ERROR timestamp mismatch: %v %v %v\n", k, dbts, ts) - if flushRecord != nil { - // Shouldn't happen. - return fmt.Errorf(" *** ERROR timestamp " + - "mismatch: found flush record") - } // Record action before verifying Fix err = journal(options.File, FilesystemActionDeleteDigest, @@ -347,7 +342,7 @@ func (fs *FileSystem) fsckTimestamp(options *backend.FsckOptions, ts int64, empt // Check again and add to empties. We may have deleted the last record // while fixing timestamp mismatches. - if len(digests) == 0 && flushRecord == nil { + if len(digests) == 0 { empties[ts] = struct{}{} }