Skip to content

Commit 47cb182

Browse files
authored
refactor: keep original code
1 parent 1932fca commit 47cb182

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

FirebaseCore/Internal/Sources/HeartbeatLogging/RingBuffer.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,10 @@ struct RingBuffer<Element>: Sequence {
2626
case outOfBoundsPush(pushIndex: Array<Element?>.Index, endIndex: Array<Element?>.Index)
2727

2828
var errorDescription: String? {
29+
return (errorDescription as String)
30+
}
31+
32+
var errorDescription: String {
2933
switch self {
3034
case let .outOfBoundsPush(pushIndex, endIndex):
3135
return "Out-of-bounds push at index \(pushIndex) to ring buffer with" +

0 commit comments

Comments
 (0)