Ver código fonte

Minor simplification

tags/v2.1.3^2
9seconds 4 anos atrás
pai
commit
ce8163d1b7
1 arquivos alterados com 1 adições e 3 exclusões
  1. 1
    3
      mtglib/internal/relay/pools.go

+ 1
- 3
mtglib/internal/relay/pools.go Ver arquivo

@@ -17,9 +17,7 @@ var eastWestPool = sync.Pool{
17 17
 }
18 18
 
19 19
 func acquireEastWest() *eastWest {
20
-	wanted := eastWestPool.Get().(*eastWest) // nolint: forcetypeassert
21
-
22
-	return wanted
20
+	return eastWestPool.Get().(*eastWest)
23 21
 }
24 22
 
25 23
 func releaseEastWest(ew *eastWest) {

Carregando…
Cancelar
Salvar