From d689e1009dbeeba812c17f49a62cdb371011bd20 Mon Sep 17 00:00:00 2001 From: Symious Date: Thu, 20 Mar 2025 23:46:23 +0800 Subject: [PATCH] change indent --- src/common/utils/AtomicSharedPtrTable.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/common/utils/AtomicSharedPtrTable.h b/src/common/utils/AtomicSharedPtrTable.h index 66e4195..8bb89a3 100644 --- a/src/common/utils/AtomicSharedPtrTable.h +++ b/src/common/utils/AtomicSharedPtrTable.h @@ -32,11 +32,11 @@ struct AvailSlots { std::lock_guard lock(mutex); if (idx == nextAvail - 1) { - nextAvail--; - while (free.find(nextAvail - 1) != free.end()) { - // move back next avail as much as possible - free.erase(--nextAvail); - } + nextAvail--; + while (free.find(nextAvail - 1) != free.end()) { + // move back next avail as much as possible + free.erase(--nextAvail); + } } else { free.insert(idx); }