Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use Loop::Break/Continue into src/protocols/secure_channel/CASESessio… #12489

Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions src/protocols/secure_channel/CASESessionCache.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ CASESessionCache::~CASESessionCache()
{
mCachePool.ForEachActiveObject([&](auto * ec) {
mCachePool.ReleaseObject(ec);
return true;
return Loop::Continue;
});
}

Expand All @@ -39,7 +39,7 @@ CASESessionCachable * CASESessionCache::GetLRUSession()
minTimeStamp = ec->mSessionSetupTimeStamp;
lruSession = ec;
}
return true;
return Loop::Continue;
});
return lruSession;
}
Expand Down Expand Up @@ -68,7 +68,7 @@ CHIP_ERROR CASESessionCache::Remove(ResumptionID resumptionID)
{
mCachePool.ReleaseObject(ec);
}
return true;
return Loop::Continue;
});

return err;
Expand All @@ -83,9 +83,9 @@ CHIP_ERROR CASESessionCache::Get(ResumptionID resumptionID, CASESessionCachable
{
found = true;
outSessionCachable = *ec;
return false;
return Loop::Break;
}
return true;
return Loop::Continue;
});

if (!found)
Expand Down