Skip to content

Commit 90c6c1e

Browse files
authored
Update routers/api/v1/repo/action.go
1 parent b8d74bc commit 90c6c1e

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

routers/api/v1/repo/action.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,8 +137,7 @@ func (Action) CreateOrUpdateSecret(ctx *context.APIContext) {
137137

138138
opt := web.GetForm(ctx).(*api.CreateOrUpdateSecretOption)
139139

140-
_, created, err := secret_service.CreateOrUpdateSecret(
141-
ctx, 0, repo.ID, ctx.PathParam("secretname"), opt.Data, opt.Description)
140+
_, created, err := secret_service.CreateOrUpdateSecret(ctx, 0, repo.ID, ctx.PathParam("secretname"), opt.Data, opt.Description)
142141
if err != nil {
143142
if errors.Is(err, util.ErrInvalidArgument) {
144143
ctx.APIError(http.StatusBadRequest, err)

0 commit comments

Comments
 (0)