Skip to content
Permalink
Browse files

govet: remove checks where flushRecord can only be one value. (#50)

  • Loading branch information...
dajohi authored and marcopeereboom committed Mar 29, 2019
1 parent d496e2f commit 435250a623716ec4bb3a2dc9154f32484dcddf4d
Showing with 1 addition and 6 deletions.
  1. +1 −6 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{}{}
}

0 comments on commit 435250a

Please sign in to comment.
You can’t perform that action at this time.