mirror of
https://github.com/apple/swift-nio
synced 2026-11-24 04:37:54 +00:00
Motivation: `MarkedCircularBuffer.popFirst()` asserts that the backing buffer should contain more than zero elements yet `popFirst()` allows `nil` to be returned when there is no value to return. Modifications: - Move the assertion from `popFirst() -> Element?` to `removeFirst() -> Element` - Test for `popFirst()` Result: - We can safely call `popFirst()` on an empty `MarkedCircularBuffer` in debug mode.