Skip to content

Commit 4cd7d83

Browse files
committed
Revert using STL algorithm
1 parent 064bf13 commit 4cd7d83

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

Common/Core/MetadataHelper.cxx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,12 @@ bool MetadataHelper::isFullyDefined() const
7878
if (!mIsInitialized) {
7979
LOG(fatal) << "Metadata not initialized";
8080
}
81-
return std::all_of(mMetadata.begin(), mMetadata.end(), [this](const auto& key) { return isKeyDefined(key.first); });
81+
for (const auto& key : mMetadata) {
82+
if (!isKeyDefined(key.first)) {
83+
return false;
84+
}
85+
}
86+
return true;
8287
}
8388

8489
std::string MetadataHelper::get(std::string const& key) const

0 commit comments

Comments
 (0)