Skip to content

Commit

Permalink
new lint
Browse files Browse the repository at this point in the history
  • Loading branch information
dtomcej committed May 15, 2020
1 parent 9238d95 commit 522957e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/topology/builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -787,9 +787,9 @@ func mapCopy(m map[Key]struct{}) map[Key]struct{} {

func removeTrafficSplitsLoop(loopDetected map[*Service][]Key) {
for svc, tss := range loopDetected {
for _, loopTs := range tss {
for _, loopTS := range tss {
for i, ts := range svc.TrafficSplits {
if ts == loopTs {
if ts == loopTS {
svc.TrafficSplits = append(svc.TrafficSplits[:i], svc.TrafficSplits[i+1:]...)
break
}
Expand Down

0 comments on commit 522957e

Please sign in to comment.