Skip to content

Commit b6dd818

Browse files
committed
make DebugAssertValid logic #if DEBUG
1 parent 7744acc commit b6dd818

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/RESPite/Buffers/CycleBuffer.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -272,6 +272,7 @@ private void DebugAssertValid(long expectedCommittedLength, [CallerMemberName] s
272272
[Conditional("DEBUG")]
273273
private void DebugAssertValid()
274274
{
275+
#if DEBUG
275276
if (startSegment is null)
276277
{
277278
Debug.Assert(
@@ -288,6 +289,7 @@ private void DebugAssertValid()
288289

289290
// check running indices
290291
startSegment?.DebugAssertValidChain();
292+
#endif
291293
}
292294

293295
public long GetCommittedLength()

0 commit comments

Comments
 (0)