From fdfc21a6b8ad5858313896d83b5b8b0ab1921f94 Mon Sep 17 00:00:00 2001 From: Michael Jerger Date: Tue, 7 May 2024 07:38:20 +0200 Subject: [PATCH] review results --- modules/validation/helpers.go | 1 - routers/api/v1/api.go | 5 +---- routers/api/v1/swagger/options.go | 2 +- 3 files changed, 2 insertions(+), 6 deletions(-) diff --git a/modules/validation/helpers.go b/modules/validation/helpers.go index 13950d9871..567ad867fe 100644 --- a/modules/validation/helpers.go +++ b/modules/validation/helpers.go @@ -1,4 +1,3 @@ -// Copyright 2024 The Forgejo Authors. All rights reserved. // Copyright 2018 The Gitea Authors. All rights reserved. // SPDX-License-Identifier: MIT diff --git a/routers/api/v1/api.go b/routers/api/v1/api.go index dcc6d17343..07b54406c0 100644 --- a/routers/api/v1/api.go +++ b/routers/api/v1/api.go @@ -1011,10 +1011,7 @@ func Routes() *web.Route { repo.CreateOrgRepoDeprecated) // requires repo scope - m.Combo("/repositories/{id}", - reqToken(), - tokenRequiresScopes(auth_model.AccessTokenScopeCategoryRepository), - ).Get(repo.GetByID) + m.Combo("/repositories/{id}", reqToken(), tokenRequiresScopes(auth_model.AccessTokenScopeCategoryRepository)).Get(repo.GetByID) // Repos (requires repo scope) m.Group("/repos", func() { diff --git a/routers/api/v1/swagger/options.go b/routers/api/v1/swagger/options.go index e6f6f009ce..2ebf089304 100644 --- a/routers/api/v1/swagger/options.go +++ b/routers/api/v1/swagger/options.go @@ -17,7 +17,7 @@ import ( // swagger:response parameterBodies type swaggerParameterBodies struct { // in:body - Star ffed.ForgeLike + ForgeLike ffed.ForgeLike // in:body AddCollaboratorOption api.AddCollaboratorOption