diff --git a/auth/authorization.go b/auth/authorization.go index 5048228..8d3a14d 100644 --- a/auth/authorization.go +++ b/auth/authorization.go @@ -23,6 +23,6 @@ func (middleware AuthenticationMiddleware) Middleware(next http.Handler) http.Ha func CreateAuthenticationMiddleware(secret string) AuthenticationMiddleware { return AuthenticationMiddleware{ - secret: secret, + secret, } } diff --git a/pipelines/executable_step.go b/pipelines/executable_step.go index 518b839..c0bfedb 100644 --- a/pipelines/executable_step.go +++ b/pipelines/executable_step.go @@ -3,8 +3,9 @@ package pipelines import ( "errors" "fmt" - "github.com/disintegration/imaging" "image" + + "github.com/disintegration/imaging" ) type IExecutableStep interface { diff --git a/pipelines/executable_step_test.go b/pipelines/executable_step_test.go index 4be7ae8..2445471 100644 --- a/pipelines/executable_step_test.go +++ b/pipelines/executable_step_test.go @@ -1,8 +1,9 @@ package pipelines import ( - "github.com/stretchr/testify/assert" "testing" + + "github.com/stretchr/testify/assert" ) func TestDeserializeOptionsResizeImage(t *testing.T) { diff --git a/pipelines/pipeline.go b/pipelines/pipeline.go index e9a783a..c5cc9b8 100644 --- a/pipelines/pipeline.go +++ b/pipelines/pipeline.go @@ -5,12 +5,13 @@ import ( "encoding/json" "errors" "fmt" - "github.com/disintegration/imaging" - "github.com/geplauder/lithium/storage" "io/fs" "log" "os" "path/filepath" + + "github.com/disintegration/imaging" + "github.com/geplauder/lithium/storage" ) // Pipelines diff --git a/pipelines/pipeline_test.go b/pipelines/pipeline_test.go index 4bee961..0b2a20c 100644 --- a/pipelines/pipeline_test.go +++ b/pipelines/pipeline_test.go @@ -1,12 +1,13 @@ package pipelines import ( - "github.com/geplauder/lithium/storage" "image" "os" "path/filepath" "testing" + "github.com/geplauder/lithium/storage" + "github.com/stretchr/testify/assert" ) diff --git a/pipelines/step_test.go b/pipelines/step_test.go index f731f5f..d7d4595 100644 --- a/pipelines/step_test.go +++ b/pipelines/step_test.go @@ -1,8 +1,9 @@ package pipelines import ( - "github.com/stretchr/testify/assert" "testing" + + "github.com/stretchr/testify/assert" ) func TestTranslateStep(t *testing.T) {