From b811b2bed640e773512a6bc438694ec2aad3b465 Mon Sep 17 00:00:00 2001 From: Dong Lieu Date: Mon, 15 Jan 2024 18:11:23 +0700 Subject: [PATCH] lint --- x/multi-staking/types/key.go | 2 -- x/multi-staking/types/key_test.go | 3 +-- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/x/multi-staking/types/key.go b/x/multi-staking/types/key.go index 244a5e10..338a50fb 100644 --- a/x/multi-staking/types/key.go +++ b/x/multi-staking/types/key.go @@ -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") } @@ -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") } diff --git a/x/multi-staking/types/key_test.go b/x/multi-staking/types/key_test.go index a65e2d36..0970eb07 100644 --- a/x/multi-staking/types/key_test.go +++ b/x/multi-staking/types/key_test.go @@ -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) {