Files
swift-nio/Tests
George Barnett 98721c75b0 Remove incorrect assertion in MarkedCircularBuffer.popFirst (#1627)
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.
2020-09-03 14:06:14 +01:00
..