Skip to content

Commit 5bd5581

Browse files
committed
fix lint
1 parent 55e86da commit 5bd5581

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

state/cluster/badger/state.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ func Bootstrap(db storage.DB, lockManager lockctx.Manager, stateRoot *StateRoot)
9595
return nil
9696
})
9797
})
98-
if err != nil {
98+
if err != nil {
9999
return nil, fmt.Errorf("bootstrapping failed: %w", err)
100100
}
101101
return state, nil

storage/operation/events.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ func InsertBlockEvents(lctx lockctx.Proof, rw storage.ReaderBatchWriter, blockID
2323
}
2424

2525
// Check if events for the block already exist
26-
// We can exit early if we find one existing event E, assuming that the process which wrote E in the past
26+
// We can exit early if we find one existing event E, assuming that the process which wrote E in the past
2727
// correctly inserted all other events for the block containing E.
2828
// This function only inserts new events; it does not sanity check existing events or ever overwrite events.
2929
prefix := MakePrefix(codeEvent, blockID)
@@ -67,7 +67,7 @@ func InsertBlockServiceEvents(lctx lockctx.Proof, rw storage.ReaderBatchWriter,
6767
}
6868

6969
// Check if events for the block already exist
70-
// We can exit early if we find one existing event E, assuming that the process which wrote E in the past
70+
// We can exit early if we find one existing event E, assuming that the process which wrote E in the past
7171
// correctly inserted all other events for the block containing E.
7272
// This function only inserts new events; it does not sanity check existing events or ever overwrite events.
7373
prefix := MakePrefix(codeServiceEvent, blockID)

storage/operation/transaction_results.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ func InsertAndIndexTransactionResults(lctx lockctx.Proof, rw storage.ReaderBatch
1818
}
1919

2020
// Check if transaction results for the block already exist
21-
// We can exit early if we find one existing transaction result R, assuming that the process which wrote R in the past
21+
// We can exit early if we find one existing transaction result R, assuming that the process which wrote R in the past
2222
// correctly inserted all other results for the block containing R.
2323
// This function only inserts new transaction results; it does not sanity check existing results or ever overwrite results.
2424

storage/store/events.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,8 @@ func (e *Events) BatchStore(lctx lockctx.Proof, blockID flow.Identifier, blockEv
5959
combinedEvents := make([]flow.Event, sliceSize)
6060
eventIndex := 0
6161

62-
for _, txEvents := range blockEvents {
63-
for _, event := range txEvents {
62+
for _, txEvents := range blockEvents {
63+
for _, event := range txEvents {
6464
combinedEvents[eventIndex] = event
6565
eventIndex++
6666
}

0 commit comments

Comments
 (0)