mirror of
https://github.com/go-gitea/gitea
synced 2025-07-22 18:28:37 +00:00
format with gofumpt (#18184)
* gofumpt -w -l . * gofumpt -w -l -extra . * Add linter * manual fix * change make fmt
This commit is contained in:
@@ -39,7 +39,7 @@ func listGPGKeys(ctx *context.APIContext, uid int64, listOptions db.ListOptions)
|
||||
ctx.JSON(http.StatusOK, &apiKeys)
|
||||
}
|
||||
|
||||
//ListGPGKeys get the GPG key list of a user
|
||||
// ListGPGKeys get the GPG key list of a user
|
||||
func ListGPGKeys(ctx *context.APIContext) {
|
||||
// swagger:operation GET /users/{username}/gpg_keys user userListGPGKeys
|
||||
// ---
|
||||
@@ -71,7 +71,7 @@ func ListGPGKeys(ctx *context.APIContext) {
|
||||
listGPGKeys(ctx, user.ID, utils.GetListOptions(ctx))
|
||||
}
|
||||
|
||||
//ListMyGPGKeys get the GPG key list of the authenticated user
|
||||
// ListMyGPGKeys get the GPG key list of the authenticated user
|
||||
func ListMyGPGKeys(ctx *context.APIContext) {
|
||||
// swagger:operation GET /user/gpg_keys user userCurrentListGPGKeys
|
||||
// ---
|
||||
@@ -94,7 +94,7 @@ func ListMyGPGKeys(ctx *context.APIContext) {
|
||||
listGPGKeys(ctx, ctx.User.ID, utils.GetListOptions(ctx))
|
||||
}
|
||||
|
||||
//GetGPGKey get the GPG key based on a id
|
||||
// GetGPGKey get the GPG key based on a id
|
||||
func GetGPGKey(ctx *context.APIContext) {
|
||||
// swagger:operation GET /user/gpg_keys/{id} user userCurrentGetGPGKey
|
||||
// ---
|
||||
@@ -212,7 +212,7 @@ type swaggerUserCurrentPostGPGKey struct {
|
||||
Form api.CreateGPGKeyOption
|
||||
}
|
||||
|
||||
//CreateGPGKey create a GPG key belonging to the authenticated user
|
||||
// CreateGPGKey create a GPG key belonging to the authenticated user
|
||||
func CreateGPGKey(ctx *context.APIContext) {
|
||||
// swagger:operation POST /user/gpg_keys user userCurrentPostGPGKey
|
||||
// ---
|
||||
@@ -233,7 +233,7 @@ func CreateGPGKey(ctx *context.APIContext) {
|
||||
CreateUserGPGKey(ctx, *form, ctx.User.ID)
|
||||
}
|
||||
|
||||
//DeleteGPGKey remove a GPG key belonging to the authenticated user
|
||||
// DeleteGPGKey remove a GPG key belonging to the authenticated user
|
||||
func DeleteGPGKey(ctx *context.APIContext) {
|
||||
// swagger:operation DELETE /user/gpg_keys/{id} user userCurrentDeleteGPGKey
|
||||
// ---
|
||||
|
@@ -170,7 +170,6 @@ func Watch(ctx *context.APIContext) {
|
||||
URL: subscriptionURL(ctx.Repo.Repository),
|
||||
RepositoryURL: ctx.Repo.Repository.APIURL(),
|
||||
})
|
||||
|
||||
}
|
||||
|
||||
// Unwatch the repo specified in ctx, as the authenticated user
|
||||
|
Reference in New Issue
Block a user