mirror of
https://github.com/apple/swift-nio
synced 2026-11-24 04:37:54 +00:00
Motivation: _ = expression() is ugly and in many cases unimportant. In fact we train ourselves to overread it which makes special cases where you'd actually expect a result to be used just look normal. Modifications: remove _ = from a lot of places. In many cases we already had a better (and sometimes cheaper way) to not return a value but in some cases (mostly `remove` functions) I added `@discardableResult` Result: NIO source code looks nicer