From 6e3888d3e98c7517e1ba6fb73c681020a83e2aeb Mon Sep 17 00:00:00 2001 From: Benjamin DENEUX Date: Mon, 29 Jul 2024 14:43:24 +0200 Subject: [PATCH] chore: fix linter import --- x/logic/keeper/grpc_query_ask_test.go | 1 + x/logic/util/pointer.go | 3 ++- x/logic/util/pointer_test.go | 3 ++- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/x/logic/keeper/grpc_query_ask_test.go b/x/logic/keeper/grpc_query_ask_test.go index db1003070..76d1042a4 100644 --- a/x/logic/keeper/grpc_query_ask_test.go +++ b/x/logic/keeper/grpc_query_ask_test.go @@ -8,6 +8,7 @@ import ( "testing" "github.com/golang/mock/gomock" + . "github.com/smartystreets/goconvey/convey" sdkmath "cosmossdk.io/math" diff --git a/x/logic/util/pointer.go b/x/logic/util/pointer.go index 0f9c5c34d..bfc29541a 100644 --- a/x/logic/util/pointer.go +++ b/x/logic/util/pointer.go @@ -1,8 +1,9 @@ package util import ( - sdkmath "cosmossdk.io/math" "reflect" + + sdkmath "cosmossdk.io/math" ) // DerefOrDefault returns the value of the pointer if it is not nil, otherwise returns the default value. diff --git a/x/logic/util/pointer_test.go b/x/logic/util/pointer_test.go index d23607d85..a7cefc25b 100644 --- a/x/logic/util/pointer_test.go +++ b/x/logic/util/pointer_test.go @@ -1,11 +1,12 @@ package util import ( - sdkmath "cosmossdk.io/math" "fmt" "testing" . "github.com/smartystreets/goconvey/convey" + + sdkmath "cosmossdk.io/math" ) func TestDerefOrDefault(t *testing.T) {