mirror of
https://github.com/golang/go
synced 2024-11-24 23:17:57 -07:00
misc/dashboard/codereview: fix obo
R=golang-dev, dsymonds CC=golang-dev https://golang.org/cl/6443091
This commit is contained in:
parent
3601f27708
commit
bacccefa8d
@ -148,7 +148,8 @@ func handleAssign(w http.ResponseWriter, r *http.Request) {
|
||||
}
|
||||
|
||||
u := user.Current(c)
|
||||
if _, ok := emailToPerson[u.Email]; !ok {
|
||||
person, ok := emailToPerson[u.Email]
|
||||
if !ok {
|
||||
http.Error(w, "Not allowed", http.StatusUnauthorized)
|
||||
return
|
||||
}
|
||||
@ -159,8 +160,7 @@ func handleAssign(w http.ResponseWriter, r *http.Request) {
|
||||
http.Error(w, "Bad CL", 400)
|
||||
return
|
||||
}
|
||||
person, ok := preferredEmail[rev]
|
||||
if !ok && rev != "" {
|
||||
if _, ok := preferredEmail[rev]; !ok && rev != "" {
|
||||
c.Errorf("Unknown reviewer %q", rev)
|
||||
http.Error(w, "Unknown reviewer", 400)
|
||||
return
|
||||
|
Loading…
Reference in New Issue
Block a user