From b2eb88a7182687c81d911c425309ef0e1f545452 Mon Sep 17 00:00:00 2001 From: Jackson Owens Date: Fri, 1 Oct 2021 14:17:00 -0400 Subject: [PATCH] sstable: remove unused rawBlockIter err field Remove an unused err field on rawBlockIter. A raw block iterator never errors. --- sstable/raw_block.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/sstable/raw_block.go b/sstable/raw_block.go index 82584dcbe0..bae54a18d9 100644 --- a/sstable/raw_block.go +++ b/sstable/raw_block.go @@ -46,7 +46,6 @@ type rawBlockIter struct { ikey InternalKey cached []blockEntry cachedBuf []byte - err error } func newRawBlockIter(cmp Compare, block block) (*rawBlockIter, error) { @@ -270,12 +269,12 @@ func (i *rawBlockIter) Valid() bool { // Error implements internalIterator.Error, as documented in the pebble // package. func (i *rawBlockIter) Error() error { - return i.err + return nil } // Close implements internalIterator.Close, as documented in the pebble // package. func (i *rawBlockIter) Close() error { i.val = nil - return i.err + return nil }