Skip to content

Commit

Permalink
Fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
ValarDragon committed Aug 19, 2024
1 parent 5bf7ef6 commit 9355856
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 9 deletions.
2 changes: 1 addition & 1 deletion libs/os/os.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ func Kill() error {
}

func Exit(s string) {
fmt.Printf(s + "\n")
fmt.Println(s)
os.Exit(1)
}

Expand Down
14 changes: 6 additions & 8 deletions types/validator_set_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,7 @@ func TestProposerSelection3(t *testing.T) {
got := vset.GetProposer().Address
expected := proposerOrder[j%4].Address
if !bytes.Equal(got, expected) {
t.Fatalf(fmt.Sprintf("vset.Proposer (%X) does not match expected proposer (%X) for (%d, %d)", got, expected, i, j))
t.Fatalf("vset.Proposer (%X) does not match expected proposer (%X) for (%d, %d)", got, expected, i, j)
}

// serialize, deserialize, check proposer
Expand All @@ -342,13 +342,11 @@ func TestProposerSelection3(t *testing.T) {
if i != 0 {
if !bytes.Equal(got, computed.Address) {
t.Fatalf(
fmt.Sprintf(
"vset.Proposer (%X) does not match computed proposer (%X) for (%d, %d)",
got,
computed.Address,
i,
j,
),
"vset.Proposer (%X) does not match computed proposer (%X) for (%d, %d)",
got,
computed.Address,
i,
j,
)
}
}
Expand Down

0 comments on commit 9355856

Please sign in to comment.