From 56fc7b8a2a004db980b986430fe6225b73ad1bb7 Mon Sep 17 00:00:00 2001 From: Eoin McAfee Date: Wed, 2 Jun 2021 14:17:42 +0100 Subject: [PATCH] group drone imports separately --- handler/api/api.go | 3 +-- handler/api/template/create_test.go | 7 ++++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/handler/api/api.go b/handler/api/api.go index 645ce011e..ee6dacc9f 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 25cdc11eb..4c43dd923 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) {