Skip to content

Commit

Permalink
it is already bool
Browse files Browse the repository at this point in the history
  • Loading branch information
egecetin committed Dec 25, 2024
1 parent 1ed3c8f commit 88413a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Common++/header/LRUList.h
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ namespace pcpp
// iterator to the element that prevented the insertion
std::pair<MapIterator, bool> pair =
m_CacheItemsMap.insert(std::make_pair(element, m_CacheItemsList.begin()));
if (!static_cast<bool>(pair.second)) // already exists
if (!pair.second) // already exists
{
m_CacheItemsList.erase(pair.first->second);
pair.first->second = m_CacheItemsList.begin();
Expand Down

0 comments on commit 88413a0

Please sign in to comment.