Skip to content

Commit c08f1e8

Browse files
committed
chore: fix linter import
1 parent 1802e83 commit c08f1e8

File tree

3 files changed

+11
-4
lines changed

3 files changed

+11
-4
lines changed

x/logic/keeper/grpc_query_ask_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import (
88
"testing"
99

1010
"github.com/golang/mock/gomock"
11+
1112
. "github.com/smartystreets/goconvey/convey"
1213

1314
sdkmath "cosmossdk.io/math"

x/logic/util/pointer.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
package util
22

33
import (
4-
sdkmath "cosmossdk.io/math"
54
"reflect"
5+
6+
sdkmath "cosmossdk.io/math"
67
)
78

89
// DerefOrDefault returns the value of the pointer if it is not nil, otherwise returns the default value.

x/logic/util/pointer_test.go

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
package util
22

33
import (
4-
sdkmath "cosmossdk.io/math"
54
"fmt"
65
"testing"
76

87
. "github.com/smartystreets/goconvey/convey"
8+
9+
sdkmath "cosmossdk.io/math"
910
)
1011

1112
func TestDerefOrDefault(t *testing.T) {
@@ -63,8 +64,12 @@ func TestNonZeroOrDefaultUInt(t *testing.T) {
6364
expected sdkmath.Uint
6465
}{
6566
{nil, sdkmath.ZeroUint(), sdkmath.ZeroUint()},
66-
{v: func() *sdkmath.Uint { u := sdkmath.ZeroUint(); return &u }(), defaultValue: sdkmath.NewUint(10), expected: sdkmath.NewUint(10)},
67-
{v: func() *sdkmath.Uint { u := sdkmath.NewUint(1); return &u }(), defaultValue: sdkmath.ZeroUint(), expected: sdkmath.NewUint(1)},
67+
{func() *sdkmath.Uint { u := sdkmath.ZeroUint(); return &u }(),
68+
sdkmath.NewUint(10),
69+
sdkmath.NewUint(10)},
70+
{func() *sdkmath.Uint { u := sdkmath.NewUint(1); return &u }(),
71+
sdkmath.ZeroUint(),
72+
sdkmath.NewUint(1)},
6873
}
6974
for _, tc := range cases {
7075
Convey(fmt.Sprintf("When the value is %v", tc.v), func() {

0 commit comments

Comments
 (0)