From 1a1a01a8423a58c2c9f4906364631b160ec593eb Mon Sep 17 00:00:00 2001 From: ᴜɴᴋɴᴡᴏɴ Date: Wed, 19 May 2021 13:38:13 +0800 Subject: ci: use new lint action and add custom config (#6562) --- internal/route/api/v1/repo/branch.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'internal/route/api/v1/repo/branch.go') 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) } -- cgit v1.2.3