mirror of https://github.com/go-gitea/gitea.git
refactor: refactor Secrets Management Logic
- Remove owner variable and direct owner ID reference in `ListActionsSecrets` function. Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
This commit is contained in:
parent
21839e6e64
commit
37287d3836
|
@ -51,11 +51,9 @@ func ListActionsSecrets(ctx *context.APIContext) {
|
|||
// "404":
|
||||
// "$ref": "#/responses/notFound"
|
||||
|
||||
owner := ctx.Repo.Owner
|
||||
repo := ctx.Repo.Repository
|
||||
|
||||
opts := &secret_model.FindSecretsOptions{
|
||||
OwnerID: owner.ID,
|
||||
RepoID: repo.ID,
|
||||
ListOptions: utils.GetListOptions(ctx),
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue