Skip to content

Commit b8d74bc

Browse files
authored
Update routers/api/v1/org/action.go
1 parent 9ecf254 commit b8d74bc

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

routers/api/v1/org/action.go

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

108108
opt := web.GetForm(ctx).(*api.CreateOrUpdateSecretOption)
109109

110-
_, created, err := secret_service.CreateOrUpdateSecret(
111-
ctx, ctx.Org.Organization.ID, 0, ctx.PathParam("secretname"), opt.Data, opt.Description)
110+
_, created, err := secret_service.CreateOrUpdateSecret(ctx, ctx.Org.Organization.ID, 0, ctx.PathParam("secretname"), opt.Data, opt.Description)
112111
if err != nil {
113112
if errors.Is(err, util.ErrInvalidArgument) {
114113
ctx.APIError(http.StatusBadRequest, err)

0 commit comments

Comments
 (0)