Skip to content

Commit 7b0a9e9

Browse files
generatedunixname2420066748465701meta-codesync[bot]
authored andcommitted
fbcode/cachelib/allocator/RebalanceStrategy.h
Reviewed By: AlnisM Differential Revision: D102131189 fbshipit-source-id: cc9ac4299e22dd444d129d48c8846ecc355ca8d9
1 parent 555a665 commit 7b0a9e9

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

cachelib/allocator/RebalanceStrategy.h

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -163,9 +163,7 @@ class RebalanceStrategy {
163163

164164
// Returns true if the state was already initialized and set up. False if we
165165
// state was not present.
166-
bool poolStatePresent(PoolId pid) const {
167-
return poolState_.find(pid) != poolState_.end();
168-
}
166+
bool poolStatePresent(PoolId pid) const { return poolState_.contains(pid); }
169167

170168
PoolState& getPoolState(PoolId pid) { return poolState_.at(pid); }
171169
const PoolState& getPoolState(PoolId pid) const { return poolState_.at(pid); }

0 commit comments

Comments
 (0)