summaryrefslogtreecommitdiffstats
path: root/routers/private
diff options
context:
space:
mode:
authorkolaente <konrad@kola-entertainments.de>2019-06-12 21:41:28 +0200
committertechknowlogick <techknowlogick@gitea.io>2019-06-12 15:41:28 -0400
commitf9ec2f89f2265bc1371a6c62359de9816534fa6b (patch)
treef48b138a457e5ac6cf843bbb38400926704370f7 /routers/private
parent5832f8d90df2d72cb38698c3e9050f2b29717dc7 (diff)
downloadgitea-f9ec2f89f2265bc1371a6c62359de9816534fa6b.tar.gz
gitea-f9ec2f89f2265bc1371a6c62359de9816534fa6b.zip
Add golangci (#6418)
Diffstat (limited to 'routers/private')
-rw-r--r--routers/private/hook.go1
-rw-r--r--routers/private/serv.go2
2 files changed, 0 insertions, 3 deletions
diff --git a/routers/private/hook.go b/routers/private/hook.go
index a5985f161e..3da5e38edb 100644
--- a/routers/private/hook.go
+++ b/routers/private/hook.go
@@ -214,5 +214,4 @@ func HookPostReceive(ctx *macaron.Context) {
ctx.JSON(http.StatusOK, map[string]interface{}{
"message": false,
})
- return
}
diff --git a/routers/private/serv.go b/routers/private/serv.go
index 68e4361e56..90579a3dcc 100644
--- a/routers/private/serv.go
+++ b/routers/private/serv.go
@@ -62,7 +62,6 @@ func ServNoCommand(ctx *macaron.Context) {
results.Owner = user
}
ctx.JSON(http.StatusOK, &results)
- return
}
// ServCommand returns information about the provided keyid
@@ -282,5 +281,4 @@ func ServCommand(ctx *macaron.Context) {
ctx.JSON(http.StatusOK, results)
// We will update the keys in a different call.
- return
}