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

pull/11/head
pebles 3 years ago
parent 341901baee
commit a8d73a4b87
  1. 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