This commit is contained in:
Lunny Xiao
2024-11-09 22:25:57 -08:00
parent ac0a4eae42
commit a154697191
2 changed files with 7 additions and 2 deletions
+1 -1
View File
@@ -282,7 +282,7 @@ func pushUpdates(optsList []*repo_module.PushUpdateOptions) error {
}
}
if err = pull_service.ClosePullsCausedByBranchDeleted(ctx, pusher, repo.ID, branch); err != nil {
if err := pull_service.ClosePullsCausedByBranchDeleted(ctx, pusher, repo.ID, branch); err != nil {
// close all related pulls
log.Error("close related pull request failed: %v", err)
}