mirror of
https://github.com/harness/drone.git
synced 2025-05-07 06:49:45 +08:00
Don't prematurely exit updateGitHubStatus()
This commit is contained in:
parent
78839ece3b
commit
cf9b791071
@ -218,7 +218,7 @@ func updateGitHubStatus(repo *Repo, commit *Commit) error {
|
||||
// get the user from the database
|
||||
// since we need his / her GitHub token
|
||||
user, err := database.GetUser(repo.UserID)
|
||||
if err == nil {
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user