Skip to content

Commit b5fdf09

Browse files
committed
reduce code
1 parent 35a6573 commit b5fdf09

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cmd/web.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -228,8 +228,8 @@ func runWeb(ctx *cli.Context) {
228228

229229
m.Group("/repos", func() {
230230
m.Post("/migrate", bindIgnErr(auth.MigrateRepoForm{}), v1.MigrateRepo)
231-
m.Combo("/:username/:reponame").Get(v1.GetRepo)
232-
m.Delete("/:username/:reponame", v1.DeleteRepo)
231+
m.Combo("/:username/:reponame").Get(v1.GetRepo).
232+
Delete(v1.DeleteRepo)
233233

234234
m.Group("/:username/:reponame", func() {
235235
m.Combo("/hooks").Get(v1.ListRepoHooks).

0 commit comments

Comments
 (0)