diff options
author | ᴜɴᴋɴᴡᴏɴ <u@gogs.io> | 2021-05-19 13:38:13 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-19 13:38:13 +0800 |
commit | 1a1a01a8423a58c2c9f4906364631b160ec593eb (patch) | |
tree | 76da60be7bd2e332b91171d0b1c342928284e846 /internal/route/api/v1/repo/branch.go | |
parent | c4cf659e324379dba29c78d6e838dfebe6b59e2f (diff) |
ci: use new lint action and add custom config (#6562)
Diffstat (limited to 'internal/route/api/v1/repo/branch.go')
-rw-r--r-- | internal/route/api/v1/repo/branch.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/route/api/v1/repo/branch.go b/internal/route/api/v1/repo/branch.go index 3ddf62cc..eb19c657 100644 --- a/internal/route/api/v1/repo/branch.go +++ b/internal/route/api/v1/repo/branch.go @@ -25,7 +25,7 @@ func GetBranch(c *context.APIContext) { return } - c.JSONSuccess( convert.ToBranch(branch, commit)) + c.JSONSuccess(convert.ToBranch(branch, commit)) } // https://github.com/gogs/go-gogs-client/wiki/Repositories#list-branches @@ -46,5 +46,5 @@ func ListBranches(c *context.APIContext) { apiBranches[i] = convert.ToBranch(branches[i], commit) } - c.JSONSuccess( &apiBranches) + c.JSONSuccess(&apiBranches) } |