diff --git a/handler/api/api.go b/handler/api/api.go index 645ce011..ee6dacc9 100644 --- a/handler/api/api.go +++ b/handler/api/api.go @@ -18,8 +18,6 @@ import ( "net/http" "os" - "github.com/drone/drone/handler/api/template" - "github.com/drone/drone/core" "github.com/drone/drone/handler/api/acl" "github.com/drone/drone/handler/api/auth" @@ -42,6 +40,7 @@ import ( "github.com/drone/drone/handler/api/repos/sign" globalsecrets "github.com/drone/drone/handler/api/secrets" "github.com/drone/drone/handler/api/system" + "github.com/drone/drone/handler/api/template" "github.com/drone/drone/handler/api/user" "github.com/drone/drone/handler/api/user/remote" "github.com/drone/drone/handler/api/users" diff --git a/handler/api/template/create_test.go b/handler/api/template/create_test.go index 25cdc11e..4c43dd92 100644 --- a/handler/api/template/create_test.go +++ b/handler/api/template/create_test.go @@ -15,12 +15,13 @@ import ( "github.com/drone/drone/handler/api/errors" "github.com/drone/drone/mock" - "github.com/go-chi/chi" - "github.com/golang/mock/gomock" - "github.com/google/go-cmp/cmp" "net/http" "net/http/httptest" "testing" + + "github.com/go-chi/chi" + "github.com/golang/mock/gomock" + "github.com/google/go-cmp/cmp" ) func TestHandleCreate(t *testing.T) {