Browse Source

Fix various formatting

Fabian Vowie 3 years ago
parent
commit
9c0ec1299f
No known key found for this signature in database GPG Key ID: C27317C33B27C410
  1. 2
      auth/authorization.go
  2. 3
      pipelines/executable_step.go
  3. 3
      pipelines/executable_step_test.go
  4. 5
      pipelines/pipeline.go
  5. 3
      pipelines/pipeline_test.go
  6. 3
      pipelines/step_test.go

2
auth/authorization.go

@ -23,6 +23,6 @@ func (middleware AuthenticationMiddleware) Middleware(next http.Handler) http.Ha
func CreateAuthenticationMiddleware(secret string) AuthenticationMiddleware { func CreateAuthenticationMiddleware(secret string) AuthenticationMiddleware {
return AuthenticationMiddleware{ return AuthenticationMiddleware{
secret: secret,
secret,
} }
} }

3
pipelines/executable_step.go

@ -3,8 +3,9 @@ package pipelines
import ( import (
"errors" "errors"
"fmt" "fmt"
"github.com/disintegration/imaging"
"image" "image"
"github.com/disintegration/imaging"
) )
type IExecutableStep interface { type IExecutableStep interface {

3
pipelines/executable_step_test.go

@ -1,8 +1,9 @@
package pipelines package pipelines
import ( import (
"github.com/stretchr/testify/assert"
"testing" "testing"
"github.com/stretchr/testify/assert"
) )
func TestDeserializeOptionsResizeImage(t *testing.T) { func TestDeserializeOptionsResizeImage(t *testing.T) {

5
pipelines/pipeline.go

@ -5,12 +5,13 @@ import (
"encoding/json" "encoding/json"
"errors" "errors"
"fmt" "fmt"
"github.com/disintegration/imaging"
"github.com/geplauder/lithium/storage"
"io/fs" "io/fs"
"log" "log"
"os" "os"
"path/filepath" "path/filepath"
"github.com/disintegration/imaging"
"github.com/geplauder/lithium/storage"
) )
// Pipelines // Pipelines

3
pipelines/pipeline_test.go

@ -1,12 +1,13 @@
package pipelines package pipelines
import ( import (
"github.com/geplauder/lithium/storage"
"image" "image"
"os" "os"
"path/filepath" "path/filepath"
"testing" "testing"
"github.com/geplauder/lithium/storage"
"github.com/stretchr/testify/assert" "github.com/stretchr/testify/assert"
) )

3
pipelines/step_test.go

@ -1,8 +1,9 @@
package pipelines package pipelines
import ( import (
"github.com/stretchr/testify/assert"
"testing" "testing"
"github.com/stretchr/testify/assert"
) )
func TestTranslateStep(t *testing.T) { func TestTranslateStep(t *testing.T) {

Loading…
Cancel
Save