Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
DongLieu committed Jan 15, 2024
1 parent 781c20b commit b811b2b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
2 changes: 0 additions & 2 deletions x/multi-staking/types/key.go
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,6 @@ func DelAddrAndValAddrFromUnlockID(unlockIDByte []byte) (multiStakerAddr sdk.Acc

func (l LockID) ToByte() []byte {
bz, err := json.Marshal(l)

if err != nil {
panic("can not Marshal")
}
Expand All @@ -95,7 +94,6 @@ func (l LockID) ToByte() []byte {

func (l UnlockID) ToByte() []byte {
bz, err := json.Marshal(l)

if err != nil {
panic("can not Marshal")
}
Expand Down
3 changes: 1 addition & 2 deletions x/multi-staking/types/key_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,9 @@ package types_test
import (
"testing"

"github.com/stretchr/testify/require"

"github.com/realio-tech/multi-staking-module/testutil"
mulStakingtypes "github.com/realio-tech/multi-staking-module/x/multi-staking/types"
"github.com/stretchr/testify/require"
)

func TestDelAddrAndValAddrFromLockID(t *testing.T) {
Expand Down

0 comments on commit b811b2b

Please sign in to comment.