Skip to content

Commit 2cea702

Browse files
Linter appeasements to achieve perfection
1 parent f235c6d commit 2cea702

File tree

5 files changed

+8
-12
lines changed

5 files changed

+8
-12
lines changed

cmd/geth/config.go

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,14 @@ import (
2121
"context"
2222
"errors"
2323
"fmt"
24+
"math/big"
25+
"os"
26+
"reflect"
27+
"time"
28+
"unicode"
29+
30+
"github.com/urfave/cli/v2"
31+
2432
"github.com/ethereum/go-ethereum/accounts/external"
2533
"github.com/ethereum/go-ethereum/accounts/keystore"
2634
"github.com/ethereum/go-ethereum/accounts/scwallet"
@@ -41,12 +49,6 @@ import (
4149
"github.com/ethereum/go-ethereum/statediff/indexer/interfaces"
4250
"github.com/ethereum/go-ethereum/statediff/indexer/shared"
4351
"github.com/naoina/toml"
44-
"github.com/urfave/cli/v2"
45-
"math/big"
46-
"os"
47-
"reflect"
48-
"time"
49-
"unicode"
5052
)
5153

5254
var (

statediff/indexer/ipld/eth_tx_test.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,6 @@ func TestEthTxResolve(t *testing.T) {
187187
t.Fatalf("error should be nil %v", gc)
188188
}
189189
}
190-
191190
}
192191

193192
func TestEthTxTree(t *testing.T) {

statediff/indexer/ipld/eth_tx_trie_test.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,6 @@ func TestTxTrieResolveBranch(t *testing.T) {
224224
if err != nil {
225225
t.Fatal("Error should be nil")
226226
}
227-
228227
}
229228
}
230229

statediff/known_gaps.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,6 @@ func (kg *KnownGapsState) captureErrorBlocks(knownErrorBlocks []*big.Int) {
139139
log.Warn("The following Gaps were found", "knownErrorBlocks", knownErrorBlocks)
140140
log.Warn("Updating known Gaps table", "startErrorBlock", startErrorBlock, "endErrorBlock", endErrorBlock, "processingKey", kg.processingKey)
141141
kg.pushKnownGaps(startErrorBlock, endErrorBlock, false, kg.processingKey)
142-
143142
}
144143

145144
// Users provide the latestBlockInDb and the latestBlockOnChain
@@ -153,7 +152,6 @@ func isGap(latestBlockInDb *big.Int, latestBlockOnChain *big.Int, expectedDiffer
153152
return true
154153
}
155154
return false
156-
157155
}
158156

159157
// This function will check for Gaps and update the DB if gaps are found.

statediff/known_gaps_test.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,6 @@ func testWriteToDb(t *testing.T, tests []gapValues, wipeDbBeforeStart bool) {
7676
validateUpsert(t, service, tc.knownErrorBlocksStart, tc.knownErrorBlocksEnd)
7777
}
7878
tearDown(t, db)
79-
8079
}
8180

8281
// test writing blocks to file and then inserting them to DB
@@ -166,7 +165,6 @@ func testFindAndUpdateGaps(t *testing.T, wipeDbBeforeStart bool) {
166165
startBlock.Add(latestBlockInDb, expectedDifference)
167166
endBlock.Sub(latestBlockOnChain, expectedDifference)
168167
validateUpsert(t, service, startBlock.Int64(), endBlock.Int64())
169-
170168
}
171169

172170
// test capturing missed blocks

0 commit comments

Comments
 (0)