From f5db14088c4568ff51efc432a7480bc53b05bfa1 Mon Sep 17 00:00:00 2001 From: Henning Perl Date: Tue, 2 Jul 2024 08:47:46 +0200 Subject: [PATCH] chore: format --- selfservice/hook/password_migration_hook.go | 2 +- selfservice/strategy/password/login_test.go | 26 ++++++++------------- 2 files changed, 11 insertions(+), 17 deletions(-) diff --git a/selfservice/hook/password_migration_hook.go b/selfservice/hook/password_migration_hook.go index f2f4378889d..55a628fc8ca 100644 --- a/selfservice/hook/password_migration_hook.go +++ b/selfservice/hook/password_migration_hook.go @@ -13,7 +13,7 @@ import ( "github.com/pkg/errors" "github.com/tidwall/gjson" "go.opentelemetry.io/otel/codes" - "go.opentelemetry.io/otel/semconv/v1.11.0" + semconv "go.opentelemetry.io/otel/semconv/v1.11.0" "go.opentelemetry.io/otel/trace" grpccodes "google.golang.org/grpc/codes" diff --git a/selfservice/strategy/password/login_test.go b/selfservice/strategy/password/login_test.go index 7f144185119..d4656ed0dea 100644 --- a/selfservice/strategy/password/login_test.go +++ b/selfservice/strategy/password/login_test.go @@ -17,35 +17,29 @@ import ( "time" "github.com/gobuffalo/httptest" - - "github.com/ory/kratos/driver" - "github.com/ory/kratos/internal/registrationhelpers" - - "github.com/ory/kratos/selfservice/flow" - "github.com/gofrs/uuid" - - "github.com/ory/x/urlx" - - "github.com/ory/kratos/hash" - kratos "github.com/ory/kratos/internal/httpclient" - "github.com/ory/x/assertx" - "github.com/ory/x/errorsx" - "github.com/ory/x/ioutilx" - "github.com/ory/x/sqlxx" - "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" "github.com/tidwall/gjson" + "github.com/ory/kratos/driver" "github.com/ory/kratos/driver/config" + "github.com/ory/kratos/hash" "github.com/ory/kratos/identity" "github.com/ory/kratos/internal" + kratos "github.com/ory/kratos/internal/httpclient" + "github.com/ory/kratos/internal/registrationhelpers" "github.com/ory/kratos/internal/testhelpers" "github.com/ory/kratos/schema" + "github.com/ory/kratos/selfservice/flow" "github.com/ory/kratos/selfservice/flow/login" "github.com/ory/kratos/text" "github.com/ory/kratos/x" + "github.com/ory/x/assertx" + "github.com/ory/x/errorsx" + "github.com/ory/x/ioutilx" + "github.com/ory/x/sqlxx" + "github.com/ory/x/urlx" ) //go:embed stub/login.schema.json