Skip to content

Commit 6d2d2e3

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

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

routers/api/v1/repo/action.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,6 @@ func (Action) CreateOrUpdateSecret(ctx *context.APIContext) {
138138
opt := web.GetForm(ctx).(*api.CreateOrUpdateSecretOption)
139139

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

0 commit comments

Comments
 (0)