]> source.dussan.org Git - gitea.git/commit
Refactor cmd setup and remove deadcode (#29313)
authorwxiaoguang <wxiaoguang@gmail.com>
Thu, 22 Feb 2024 07:04:30 +0000 (15:04 +0800)
committerGitHub <noreply@github.com>
Thu, 22 Feb 2024 07:04:30 +0000 (07:04 +0000)
commite9b13732f3d3b5536e43bdfdb5757dbbf484d694
tree6ee4f973b2e9f177931cf343501237a756b6c306
parent182b9c193642838dd41bf26f0fe4b2e870770f7e
Refactor cmd setup and remove deadcode (#29313)

* use `setup(ctx, c.Bool("debug"))` like all other callers
* `setting.RunMode = "dev"` is a no-op.
* `if _, err := os.Stat(setting.RepoRootPath); err != nil` could be
simplified
cmd/keys.go
cmd/serv.go