mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-10 09:11:55 +00:00
grid2: simplify removeDuplicatedPins
This commit is contained in:
parent
461735e043
commit
df1067d309
|
@ -55,10 +55,9 @@ func removeDuplicatedPins(pins []Pin) []Pin {
|
|||
|
||||
if _, exists := buckets[p.String()]; exists {
|
||||
continue
|
||||
} else {
|
||||
out = append(out, pin)
|
||||
}
|
||||
|
||||
out = append(out, pin)
|
||||
buckets[p.String()] = struct{}{}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user