mirror of
https://github.com/pomerium/pomerium.git
synced 2025-06-01 10:22:43 +02:00
refactor: Directly swap variable values (#5305)
Signed-off-by: cuishuang <imcusg@gmail.com>
This commit is contained in:
parent
4c052483da
commit
105743be37
1 changed files with 1 additions and 1 deletions
|
@ -215,7 +215,7 @@ func (l serviceList) Less(i, j int) bool {
|
|||
return l[i].Kind < l[j].Kind
|
||||
}
|
||||
|
||||
func (l serviceList) Swap(i, j int) { t := l[i]; l[i] = l[j]; l[j] = t }
|
||||
func (l serviceList) Swap(i, j int) { l[i], l[j] = l[j], l[i] }
|
||||
|
||||
func assertEqual(t *testing.T, want, got []*pb.Service) {
|
||||
t.Helper()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue