mirror of
https://github.com/golang/go
synced 2024-11-11 23:40:22 -07:00
misc/dashboard/codereview: preserve CL ordering.
R=r CC=golang-dev https://golang.org/cl/6136056
This commit is contained in:
parent
86a91539b8
commit
cc9a5c3be7
@ -78,7 +78,8 @@ func handleFront(w http.ResponseWriter, r *http.Request) {
|
||||
for i := len(tbl.CLs) - 1; i >= 0; i-- {
|
||||
cl := tbl.CLs[i]
|
||||
if cl.Author == currentPerson || cl.Reviewer == currentPerson {
|
||||
tbl.CLs[i] = tbl.CLs[len(tbl.CLs)-1]
|
||||
// Preserve order.
|
||||
copy(tbl.CLs[i:], tbl.CLs[i+1:])
|
||||
tbl.CLs = tbl.CLs[:len(tbl.CLs)-1]
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user