aboutsummaryrefslogtreecommitdiffstats
path: root/routers/api/v1/repo/release_attachment.go
diff options
context:
space:
mode:
authorBo-Yi Wu <appleboy.tw@gmail.com>2018-03-29 21:32:40 +0800
committerLunny Xiao <xiaolunwen@gmail.com>2018-03-29 21:32:40 +0800
commit1c5cbc390bd67194470859a5731719bf069b5ef4 (patch)
treea883063d330f61d3310a3a4818a335e20694c88c /routers/api/v1/repo/release_attachment.go
parenta8beef890dc6aa9262442969ae6d14c53282025b (diff)
downloadgitea-1c5cbc390bd67194470859a5731719bf069b5ef4.tar.gz
gitea-1c5cbc390bd67194470859a5731719bf069b5ef4.zip
refactor: import order. (#3736)
Diffstat (limited to 'routers/api/v1/repo/release_attachment.go')
-rw-r--r--routers/api/v1/repo/release_attachment.go8
1 files changed, 5 insertions, 3 deletions
diff --git a/routers/api/v1/repo/release_attachment.go b/routers/api/v1/repo/release_attachment.go
index 80b2064df0..f11fac1629 100644
--- a/routers/api/v1/repo/release_attachment.go
+++ b/routers/api/v1/repo/release_attachment.go
@@ -5,13 +5,15 @@
package repo
import (
+ "errors"
+ "net/http"
+ "strings"
+
"code.gitea.io/gitea/models"
"code.gitea.io/gitea/modules/context"
"code.gitea.io/gitea/modules/setting"
+
api "code.gitea.io/sdk/gitea"
- "errors"
- "net/http"
- "strings"
)
// GetReleaseAttachment gets a single attachment of the release