From 0a6ea783d643983eee2edee4921255d6d43be19f Mon Sep 17 00:00:00 2001 From: Kevin Su Date: Mon, 28 Oct 2024 12:49:16 -0700 Subject: [PATCH] lint Signed-off-by: Kevin Su --- flytepropeller/pkg/compiler/validators/bindings.go | 3 ++- flytepropeller/pkg/compiler/validators/condition.go | 1 + flytestdlib/utils/pretty_print.go | 3 ++- flytestdlib/utils/pretty_print_test.go | 3 ++- 4 files changed, 7 insertions(+), 3 deletions(-) diff --git a/flytepropeller/pkg/compiler/validators/bindings.go b/flytepropeller/pkg/compiler/validators/bindings.go index b74a19d7c8..f853e0a017 100644 --- a/flytepropeller/pkg/compiler/validators/bindings.go +++ b/flytepropeller/pkg/compiler/validators/bindings.go @@ -2,9 +2,10 @@ package validators import ( "fmt" - "github.com/flyteorg/flyte/flytestdlib/utils" "reflect" + "github.com/flyteorg/flyte/flytestdlib/utils" + "k8s.io/apimachinery/pkg/util/sets" flyte "github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/core" diff --git a/flytepropeller/pkg/compiler/validators/condition.go b/flytepropeller/pkg/compiler/validators/condition.go index 4e0b82cd84..7cfc7d1c9d 100644 --- a/flytepropeller/pkg/compiler/validators/condition.go +++ b/flytepropeller/pkg/compiler/validators/condition.go @@ -2,6 +2,7 @@ package validators import ( "fmt" + "github.com/flyteorg/flyte/flytestdlib/utils" flyte "github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/core" diff --git a/flytestdlib/utils/pretty_print.go b/flytestdlib/utils/pretty_print.go index 393c7a1af0..8b7b669061 100644 --- a/flytestdlib/utils/pretty_print.go +++ b/flytestdlib/utils/pretty_print.go @@ -2,8 +2,9 @@ package utils import ( "fmt" - "github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/core" "strings" + + "github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/core" ) func LiteralTypeToStr(lt *core.LiteralType) string { diff --git a/flytestdlib/utils/pretty_print_test.go b/flytestdlib/utils/pretty_print_test.go index fef1e187ef..ba9466a5c9 100644 --- a/flytestdlib/utils/pretty_print_test.go +++ b/flytestdlib/utils/pretty_print_test.go @@ -1,9 +1,10 @@ package utils import ( + "testing" + "github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/core" "github.com/stretchr/testify/assert" - "testing" ) func TestLiteralTypeToStr(t *testing.T) {