Collapse if's into one.

This commit is contained in:
Suraj Gupta 2021-10-14 18:47:05 -04:00
parent 3ccc24136c
commit d46951ccb7
1 changed files with 2 additions and 4 deletions

View File

@ -797,10 +797,8 @@ ACTOR static Future<JsonBuilderObject> processStatusFetcher(
roles.addRole("ratekeeper", db->get().ratekeeper.get());
}
if (CLIENT_KNOBS->ENABLE_BLOB_GRANULES) {
if (db->get().blobManager.present()) {
roles.addRole("blob_manager", db->get().blobManager.get());
}
if (CLIENT_KNOBS->ENABLE_BLOB_GRANULES && db->get().blobManager.present()) {
roles.addRole("blob_manager", db->get().blobManager.get());
}
for (auto& tLogSet : db->get().logSystemConfig.tLogs) {