Skip to content

Commit

Permalink
linter fix
Browse files Browse the repository at this point in the history
  • Loading branch information
chris124567 committed Mar 21, 2024
1 parent 138caa2 commit ad014ab
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 9 deletions.
4 changes: 3 additions & 1 deletion .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,9 @@ issues:
# But independently from this option we use default exclude patterns,
# it can be disabled by `exclude-use-default: false`. To list all
# excluded by default patterns execute `golangci-lint run --help`
exclude: []
exclude:
- "ifElseChain:.*"
- "exitAfterDefer: log\.Fatal.*"

# Independently from option `exclude` we use default exclude patterns,
# it can be disabled by this option. To list all
Expand Down
16 changes: 8 additions & 8 deletions persist/sqlite/consensus_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -276,14 +276,14 @@ func TestSendTransactions(t *testing.T) {
}

checkTransaction := func(expectTxn types.Transaction, gotTxn explorer.Transaction) {
if len(expectTxn.SiacoinInputs) != len(expectTxn.SiacoinInputs) {
t.Fatalf("expected %d siacoin inputs, got %d", len(expectTxn.SiacoinInputs), len(expectTxn.SiacoinInputs))
} else if len(expectTxn.SiacoinOutputs) != len(expectTxn.SiacoinOutputs) {
t.Fatalf("expected %d siacoin outputs, got %d", len(expectTxn.SiacoinOutputs), len(expectTxn.SiacoinOutputs))
} else if len(expectTxn.SiafundInputs) != len(expectTxn.SiafundInputs) {
t.Fatalf("expected %d siafund inputs, got %d", len(expectTxn.SiafundInputs), len(expectTxn.SiafundInputs))
} else if len(expectTxn.SiafundOutputs) != len(expectTxn.SiafundOutputs) {
t.Fatalf("expected %d siafund outputs, got %d", len(expectTxn.SiafundOutputs), len(expectTxn.SiafundOutputs))
if len(expectTxn.SiacoinInputs) != len(gotTxn.SiacoinInputs) {
t.Fatalf("expected %d siacoin inputs, got %d", len(expectTxn.SiacoinInputs), len(gotTxn.SiacoinInputs))
} else if len(expectTxn.SiacoinOutputs) != len(gotTxn.SiacoinOutputs) {
t.Fatalf("expected %d siacoin outputs, got %d", len(expectTxn.SiacoinOutputs), len(gotTxn.SiacoinOutputs))
} else if len(expectTxn.SiafundInputs) != len(gotTxn.SiafundInputs) {
t.Fatalf("expected %d siafund inputs, got %d", len(expectTxn.SiafundInputs), len(gotTxn.SiafundInputs))
} else if len(expectTxn.SiafundOutputs) != len(gotTxn.SiafundOutputs) {
t.Fatalf("expected %d siafund outputs, got %d", len(expectTxn.SiafundOutputs), len(gotTxn.SiafundOutputs))
}

for i := range expectTxn.SiacoinInputs {
Expand Down

0 comments on commit ad014ab

Please sign in to comment.