Skip to content

Commit 0a6202f

Browse files
karasjoh000vpirogov
authored andcommitted
[common][cache_utils]: fix not empty condition in remove_if_invalidated
1 parent fdbff45 commit 0a6202f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/common/cache_utils.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ struct lru_cache_t final : public cache_t<K, O, C, key_merge> {
276276

277277
const auto &value = it->second.value_;
278278
// If the entry is not invalidated
279-
if (value.get().is_empty()) { return; }
279+
if (!value.get().is_empty()) { return; }
280280

281281
// Remove the invalidated entry
282282
cache_mapper().erase(it);

0 commit comments

Comments
 (0)