Skip to content

Commit

Permalink
early return when repo delete failed (#2613)
Browse files Browse the repository at this point in the history
  • Loading branch information
littlejiancc authored Oct 27, 2021
1 parent 6cf5f64 commit f1cca15
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions modules/core-services/services/application/appliation.go
Original file line number Diff line number Diff line change
Expand Up @@ -564,6 +564,7 @@ func (a *Application) Delete(applicationID int64) (*model.Application, error) {
// 防止有老数据不存在repoID,还是以repo路径进行删除
if err = a.bdl.DeleteGitRepo(application.GitRepoAbbrev); err != nil {
logrus.Errorf(err.Error())
return nil, fmt.Errorf("failed to delete repo, please try again")
}
}

Expand Down

0 comments on commit f1cca15

Please sign in to comment.