Browse Source

Fix various formatting

feature/general-cleanup
Fabian Vowie 3 years ago
parent
commit
6a1a5e6985
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 {
return AuthenticationMiddleware{
secret: secret,
secret,
}
}

3
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 {

3
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) {

5
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

3
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"
)

3
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) {

Loading…
Cancel
Save