Skip to content

Commit 46760ff

Browse files
committed
ignore state closer err, since we already returning an error
1 parent 752c820 commit 46760ff

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

sync/pendingdata/helpers.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -230,9 +230,7 @@ func PendingStateBeforeIndex(
230230
pendingStateReader, err := pending.PendingStateBeforeIndex(baseState, index)
231231
if err != nil {
232232
// Clean up base state if pending state creation fails
233-
if closeErr := baseStateCloser(); closeErr != nil {
234-
return nil, nil, closeErr
235-
}
233+
_ = baseStateCloser()
236234
return nil, nil, err
237235
}
238236

0 commit comments

Comments
 (0)