Skip to content

Commit

Permalink
Move s to correct scope.
Browse files Browse the repository at this point in the history
  • Loading branch information
bemasher committed Jan 13, 2015
1 parent c9c1d99 commit 0c47867
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion idm/idm.go
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,8 @@ func (p Parser) Parse(indices []int) (msgs []parse.Message) {
seen := make(map[string]bool)

for _, pkt := range p.Decoder.Slice(indices) {
if s := string(pkt); seen[s] {
s := string(pkt)
if seen[s] {
continue
}
seen[s] = true
Expand Down
3 changes: 2 additions & 1 deletion scm/scm.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,8 @@ func (p Parser) Parse(indices []int) (msgs []parse.Message) {
seen := make(map[string]bool)

for _, pkt := range p.Decoder.Slice(indices) {
if s := string(pkt); seen[s] {
s := string(pkt)
if seen[s] {
continue
}
seen[s] = true
Expand Down

0 comments on commit 0c47867

Please sign in to comment.