Skip to content

Commit 0a51b67

Browse files
authored
Update repo.go
1 parent 58d6d50 commit 0a51b67

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

routers/web/repo/repo.go

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -368,9 +368,11 @@ func Action(ctx *context.Context) {
368368
err = repo_service.UpdateRepository(ctx, ctx.Repo.Repository, false)
369369
}
370370

371-
handleActionError(ctx, err)
372-
if ctx.Written() {
373-
return
371+
if err != nil {
372+
handleActionError(ctx, err)
373+
if ctx.Written() {
374+
return
375+
}
374376
}
375377

376378
switch ctx.PathParam("action") {

0 commit comments

Comments
 (0)