Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 1 commit into from Mar 29, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
7 changes: 1 addition & 6 deletions dcrtimed/backend/filesystem/fsck.go
Expand Up @@ -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,
Expand Down Expand Up @@ -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{}{}
}

Expand Down