Skip to content

Commit

Permalink
new lint
Browse files Browse the repository at this point in the history
  • Loading branch information
dtomcej committed May 13, 2020
1 parent 43d1d7f commit 1adbd9a
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 @@ -782,9 +782,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 1adbd9a

Please sign in to comment.