Skip to content

Commit 79fc260

Browse files
committed
fix lint issue with comment
1 parent b5a40c1 commit 79fc260

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

engine/access/rpc/backend/backend_transactions.go

+8-4
Original file line numberDiff line numberDiff line change
@@ -350,11 +350,15 @@ func (b *backendTransactions) GetTransactionResult(
350350
return txResult, nil
351351
}
352352

353-
// retrieveBlock function returns a block based on the input argument. The block ID lookup has the highest priority,
354-
// followed by the collection ID lookup. If both are missing, the default lookup by transaction ID is performed.
353+
// retrieveBlock function returns a block based on the input arguments.
354+
// The block ID lookup has the highest priority, followed by the collection ID lookup.
355+
// If both are missing, the default lookup by transaction ID is performed.
356+
//
357+
// If looking up the block based solely on the txID returns not found, then no error is returned.
358+
//
359+
// Expected errors:
360+
// - storage.ErrNotFound if the requested block or collection was not found.
355361
func (b *backendTransactions) retrieveBlock(
356-
// the requested block or collection was not found. If looking up the block based solely on the txID returns
357-
// not found, then no error is returned.
358362
blockID flow.Identifier,
359363
collectionID flow.Identifier,
360364
txID flow.Identifier,

0 commit comments

Comments
 (0)