| OLD | NEW |
| 1 // Copyright 2016 The LUCI Authors. All rights reserved. | 1 // Copyright 2016 The LUCI Authors. All rights reserved. |
| 2 // Use of this source code is governed under the Apache License, Version 2.0 | 2 // Use of this source code is governed under the Apache License, Version 2.0 |
| 3 // that can be found in the LICENSE file. | 3 // that can be found in the LICENSE file. |
| 4 | 4 |
| 5 package buildbot | 5 package buildbot |
| 6 | 6 |
| 7 import ( | 7 import ( |
| 8 "encoding/json" | 8 "encoding/json" |
| 9 "errors" | 9 "errors" |
| 10 "fmt" | 10 "fmt" |
| (...skipping 614 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 625 var newAliases map[string][]*buildbotLinkAlias | 625 var newAliases map[string][]*buildbotLinkAlias |
| 626 if l := remainingAliases.Len(); l > 0 { | 626 if l := remainingAliases.Len(); l > 0 { |
| 627 newAliases = make(map[string][]*buildbotLinkAlias, l) | 627 newAliases = make(map[string][]*buildbotLinkAlias, l) |
| 628 remainingAliases.Iter(func(v string) bool { | 628 remainingAliases.Iter(func(v string) bool { |
| 629 newAliases[v] = s.Aliases[v] | 629 newAliases[v] = s.Aliases[v] |
| 630 return true | 630 return true |
| 631 }) | 631 }) |
| 632 } | 632 } |
| 633 s.Aliases = newAliases | 633 s.Aliases = newAliases |
| 634 } | 634 } |
| OLD | NEW |