mirror of
https://github.com/v2ray/v2ray-core.git
synced 2026-11-25 15:21:44 +00:00
Simplify swap
This commit is contained in:
1 parent
1b8e100879
commit
794b5081e3
1 file changed
+1
-3
@@ -22,9 +22,7 @@ func (queue timedQueueImpl) Less(i, j int) bool {
|
||||
}
|
||||
|
||||
func (queue timedQueueImpl) Swap(i, j int) {
|
||||
tmp := queue[i]
|
||||
queue[i] = queue[j]
|
||||
queue[j] = tmp
|
||||
queue[i], queue[j] = queue[j], queue[i]
|
||||
}
|
||||
|
||||
func (queue *timedQueueImpl) Push(value interface{}) {
|
||||
|
||||
Reference in new issue
Block a user