Skip to content

Commit

Permalink
fix gosec issue
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinssgh committed Mar 27, 2024
1 parent a478069 commit 94ec0cc
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions zetaclient/testutils/stub/keyring.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,7 @@ func (m mockKeyring) SupportedAlgorithms() (ckeys.SigningAlgoList, ckeys.Signing
}

func (m mockKeyring) Key(_ string) (*ckeys.Record, error) {
record, _ := ckeys.NewLocalRecord("", TestKeyringPair, TestKeyringPair.PubKey())
return record, nil
return ckeys.NewLocalRecord("", TestKeyringPair, TestKeyringPair.PubKey())
}

func (m mockKeyring) KeyByAddress(_ sdk.Address) (*ckeys.Record, error) {
Expand Down

0 comments on commit 94ec0cc

Please sign in to comment.