Browse Source

Bug: return error when user doesn`t exist on gitea.

webdeploy
pebles 3 years ago
parent
commit
a8d73a4b87
  1. 1
      gitea/gitea.go

1
gitea/gitea.go

@ -78,6 +78,7 @@ func (r *Repo) userID() (int, error) {
emptyuser := []*gitea.User{}
if reflect.DeepEqual(userexist, emptyuser) == true {
log.Printf("User doesn't exist")
return -2, err
}
uid := int(userexist[0].ID)
return uid, nil

Loading…
Cancel
Save