Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion registry/storage/blob_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ import (
"github.com/docker/distribution/registry/storage/driver/testdriver"
"github.com/docker/distribution/testutil"
"github.com/opencontainers/go-digest"
"path"
)

// TestWriteSeek tests that the current file size can be
Expand Down
4 changes: 2 additions & 2 deletions registry/storage/driver/gcs/gcs.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ type driverParameters struct {
// pushes by ensuring we aren't DoSing our own server with many
// connections.
maxConcurrency uint64
projectID string
projectID string
}

func init() {
Expand Down Expand Up @@ -212,7 +212,7 @@ func FromParameters(parameters map[string]interface{}) (storagedriver.StorageDri
client: oauth2.NewClient(context.Background(), ts),
chunkSize: chunkSize,
maxConcurrency: maxConcurrency,
projectID: fmt.Sprint(key.ProjectID),
projectID: fmt.Sprint(key.ProjectID),
}

return New(params)
Expand Down
4 changes: 1 addition & 3 deletions registry/storage/driver/gcs/gcs_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,8 @@ import (
"os"
"testing"

dcontext "github.com/docker/distribution/context"
"fmt"

ctx "github.com/docker/distribution/context"
dcontext "github.com/docker/distribution/context"
storagedriver "github.com/docker/distribution/registry/storage/driver"
"github.com/docker/distribution/registry/storage/driver/testsuites"
"golang.org/x/oauth2"
Expand Down
2 changes: 1 addition & 1 deletion registry/storage/driver/s3-aws/s3.go
Original file line number Diff line number Diff line change
Expand Up @@ -460,7 +460,7 @@ func New(params DriverParameters) (*Driver, error) {
setv2Handlers(s3obj)
}

_, err := s3obj.CreateBucket(&s3.CreateBucketInput{
_, err = s3obj.CreateBucket(&s3.CreateBucketInput{
Bucket: &params.Bucket,
})
if err != nil {
Expand Down