Skip to content

Commit

Permalink
chore: linter try yet a different position for the nolint
Browse files Browse the repository at this point in the history
  • Loading branch information
evan-forbes committed Jun 12, 2023
1 parent 60c05be commit 22eb285
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions types/block_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -196,9 +196,9 @@ func makeBlockID(hash []byte, partSetSize uint32, partSetHash []byte) BlockID {
var nilBytes []byte

// This follows RFC-6962, i.e. `echo -n ” | sha256sum`
var emptyBytes = []byte{0xe3, 0xb0, 0xc4, 0x42, 0x98, 0xfc, 0x1c, 0x14, 0x9a, 0xfb, 0xf4, 0xc8,
var emptyBytes = []byte{0xe3, 0xb0, 0xc4, 0x42, 0x98, 0xfc, 0x1c, 0x14, 0x9a, 0xfb, 0xf4, 0xc8, //nolint:unused
0x99, 0x6f, 0xb9, 0x24, 0x27, 0xae, 0x41, 0xe4, 0x64, 0x9b, 0x93, 0x4c, 0xa4, 0x95, 0x99, 0x1b,
0x78, 0x52, 0xb8, 0x55} //nolint:unused
0x78, 0x52, 0xb8, 0x55}

func TestNilHeaderHashDoesntCrash(t *testing.T) {
assert.Equal(t, nilBytes, []byte((*Header)(nil).Hash()))
Expand Down

0 comments on commit 22eb285

Please sign in to comment.