mirror of
https://github.com/apple/swift-nio
synced 2026-11-25 04:47:49 +00:00
Motivation: Given that wrapErrorIsNullReturnCall exists purely to wrap syscalls that return NULL pointers on errors, there is no point allowing the return value to be nil. Additionally, it's currently weirdly specific about the return pointer type, so we can make the function generic. Modifications: - Make the return value of wrapErrorIsNullReturnCall generic. - Make the return value of wrapErrorIsNullReturnCall non-optional. Result: Easier to use wrapErrorIsNullReturnCall and any matching function