Skip to content

Commit

Permalink
Fix checkstyle
Browse files Browse the repository at this point in the history
  • Loading branch information
szetszwo committed Oct 7, 2024
1 parent 632809e commit 3b07ab9
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -556,9 +556,9 @@ void done() {

@Override
void discard() {
final ReferenceCountedObject<LogEntryProto> entry = ref.getAndSet(null);
if (entry != null) {
entry.release();
final ReferenceCountedObject<LogEntryProto> entryRef = ref.getAndSet(null);
if (entryRef != null) {
entryRef.release();
}
}

Expand Down

0 comments on commit 3b07ab9

Please sign in to comment.