Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
G
golang
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
go
golang
Commits
83aa040c
Commit
83aa040c
authored
May 01, 2012
by
David Symonds
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
misc/dashboard/codereview: de-dup LGTMs.
R=golang-dev, r CC=golang-dev
https://golang.org/cl/6127066
parent
c3c8e35a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
cl.go
misc/dashboard/codereview/dashboard/cl.go
+5
-2
No files found.
misc/dashboard/codereview/dashboard/cl.go
View file @
83aa040c
...
...
@@ -304,6 +304,7 @@ func updateCL(c appengine.Context, n string) error {
if
i
:=
strings
.
Index
(
cl
.
FirstLine
,
"
\n
"
);
i
>=
0
{
cl
.
FirstLine
=
cl
.
FirstLine
[
:
i
]
}
lgtm
:=
make
(
map
[
string
]
bool
)
rcpt
:=
make
(
map
[
string
]
bool
)
for
_
,
msg
:=
range
apiResp
.
Messages
{
s
,
rev
:=
msg
.
Sender
,
false
...
...
@@ -320,14 +321,16 @@ func updateCL(c appengine.Context, n string) error {
}
if
msg
.
Approval
{
// TODO(dsymonds): De-dupe LGTMs.
cl
.
LGTMs
=
append
(
cl
.
LGTMs
,
s
)
lgtm
[
s
]
=
true
}
for
_
,
r
:=
range
msg
.
Recipients
{
rcpt
[
r
]
=
true
}
}
for
l
:=
range
lgtm
{
cl
.
LGTMs
=
append
(
cl
.
LGTMs
,
l
)
}
for
r
:=
range
rcpt
{
cl
.
Recipients
=
append
(
cl
.
Recipients
,
r
)
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment