Skip to content

Commit

Permalink
[test] refs #279 - Fix lint error
Browse files Browse the repository at this point in the history
ineffectual assignment
  • Loading branch information
e1Ru1o committed Jan 21, 2020
1 parent 2c3c26e commit 56d386f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/util/main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ func TestPubKeyFromBytes(t *testing.T) {
require.Nil(t, err)
require.Equal(t, pubKey, mockPubKey)

pubKey, err = PubKeyFromBytes(`CUSTOMTICKER`, bytes)
_, err = PubKeyFromBytes(`CUSTOMTICKER`, bytes) // nolint gosec
require.NotNil(t, err)
}

Expand All @@ -61,10 +61,10 @@ func TestSecKeyFromBytes(t *testing.T) {
mockPlugin.On("SecKeyFromBytes", bytes).Return(mockSecKey, nil)
RegisterAltcoin(mockPlugin)

pubKey, err := SecKeyFromBytes(fakeTicker, bytes)
secKey, err := SecKeyFromBytes(fakeTicker, bytes)
require.Nil(t, err)
require.Equal(t, pubKey, mockSecKey)
require.Equal(t, secKey, mockSecKey)

pubKey, err = SecKeyFromBytes(`CUSTOMTICKER`, bytes)
_, err = SecKeyFromBytes(`CUSTOMTICKER`, bytes) // nolint gosec
require.NotNil(t, err)
}

0 comments on commit 56d386f

Please sign in to comment.