mirror of
https://github.com/ScuroNeko/mtg.git
synced 2026-09-02 00:11:56 +03:00
Minor simplification
This commit is contained in:
@@ -17,9 +17,7 @@ var eastWestPool = sync.Pool{
|
|||||||
}
|
}
|
||||||
|
|
||||||
func acquireEastWest() *eastWest {
|
func acquireEastWest() *eastWest {
|
||||||
wanted := eastWestPool.Get().(*eastWest) // nolint: forcetypeassert
|
return eastWestPool.Get().(*eastWest)
|
||||||
|
|
||||||
return wanted
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func releaseEastWest(ew *eastWest) {
|
func releaseEastWest(ew *eastWest) {
|
||||||
|
|||||||
Reference in New Issue
Block a user