Skip to content

Commit

Permalink
Cleaning up format to make gofmt happy
Browse files Browse the repository at this point in the history
Signed-off-by: Greg Sidelinger <gate@ilive4code.net>
  • Loading branch information
gregsidelinger committed Nov 22, 2019
1 parent c8634c1 commit 0757cf4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 10 deletions.
2 changes: 0 additions & 2 deletions src/jobservice/job/impl/replication/replication.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,6 @@ import (
_ "github.com/goharbor/harbor/src/replication/adapter/gitlab"
// register the DTR adapter
_ "github.com/goharbor/harbor/src/replication/adapter/dtr"


)

// Replication implements the job interface
Expand Down
16 changes: 8 additions & 8 deletions src/replication/adapter/dtr/adapter.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,25 +16,25 @@ import (
)

func init() {
err := adp.RegisterFactory(model.RegistryTypeDTR, new(factory))
if err != nil {
log.Errorf("failed to register factory for dtr: %v", err)
return
}
log.Infof("the factory of dtr adapter was registered")
err := adp.RegisterFactory(model.RegistryTypeDTR, new(factory))
if err != nil {
log.Errorf("failed to register factory for dtr: %v", err)
return
}
log.Infof("the factory of dtr adapter was registered")
}

type factory struct {
}

// Create ...
func (f *factory) Create(r *model.Registry) (adp.Adapter, error) {
return newAdapter(r)
return newAdapter(r)
}

// AdapterPattern ...
func (f *factory) AdapterPattern() *model.AdapterPattern {
return nil
return nil
}

type adapter struct {
Expand Down

0 comments on commit 0757cf4

Please sign in to comment.