From f99a9b270f30c551fdc73de346166a160542f3bc Mon Sep 17 00:00:00 2001 From: Tyler Helmuth <12352919+TylerHelmuth@users.noreply.github.com> Date: Wed, 24 May 2023 12:24:31 -0600 Subject: [PATCH] fix lint --- pkg/ottl/ottlfuncs/func_is_map.go | 1 + pkg/ottl/ottlfuncs/func_is_map_test.go | 2 +- pkg/ottl/ottlfuncs/func_is_string.go | 4 +++- pkg/ottl/ottlfuncs/func_is_string_test.go | 2 +- 4 files changed, 6 insertions(+), 3 deletions(-) diff --git a/pkg/ottl/ottlfuncs/func_is_map.go b/pkg/ottl/ottlfuncs/func_is_map.go index 1aca3e220303..5c24bfc85d7a 100644 --- a/pkg/ottl/ottlfuncs/func_is_map.go +++ b/pkg/ottl/ottlfuncs/func_is_map.go @@ -6,6 +6,7 @@ package ottlfuncs // import "github.com/open-telemetry/opentelemetry-collector-c import ( "context" "fmt" + "go.opentelemetry.io/collector/pdata/pcommon" "github.com/open-telemetry/opentelemetry-collector-contrib/pkg/ottl" diff --git a/pkg/ottl/ottlfuncs/func_is_map_test.go b/pkg/ottl/ottlfuncs/func_is_map_test.go index cd3ac39b3991..4056f8fa012e 100644 --- a/pkg/ottl/ottlfuncs/func_is_map_test.go +++ b/pkg/ottl/ottlfuncs/func_is_map_test.go @@ -5,10 +5,10 @@ package ottlfuncs import ( "context" - "go.opentelemetry.io/collector/pdata/pcommon" "testing" "github.com/stretchr/testify/assert" + "go.opentelemetry.io/collector/pdata/pcommon" "github.com/open-telemetry/opentelemetry-collector-contrib/pkg/ottl" ) diff --git a/pkg/ottl/ottlfuncs/func_is_string.go b/pkg/ottl/ottlfuncs/func_is_string.go index e1fc9addacc7..49872ffd7842 100644 --- a/pkg/ottl/ottlfuncs/func_is_string.go +++ b/pkg/ottl/ottlfuncs/func_is_string.go @@ -6,8 +6,10 @@ package ottlfuncs // import "github.com/open-telemetry/opentelemetry-collector-c import ( "context" "fmt" - "github.com/open-telemetry/opentelemetry-collector-contrib/pkg/ottl" + "go.opentelemetry.io/collector/pdata/pcommon" + + "github.com/open-telemetry/opentelemetry-collector-contrib/pkg/ottl" ) type IsStringArguments[K any] struct { diff --git a/pkg/ottl/ottlfuncs/func_is_string_test.go b/pkg/ottl/ottlfuncs/func_is_string_test.go index 6a204187aaf8..afd7e21864df 100644 --- a/pkg/ottl/ottlfuncs/func_is_string_test.go +++ b/pkg/ottl/ottlfuncs/func_is_string_test.go @@ -5,10 +5,10 @@ package ottlfuncs import ( "context" - "go.opentelemetry.io/collector/pdata/pcommon" "testing" "github.com/stretchr/testify/assert" + "go.opentelemetry.io/collector/pdata/pcommon" "github.com/open-telemetry/opentelemetry-collector-contrib/pkg/ottl" )