Skip to content

Commit deeb473

Browse files
committed
minor features of config print
1 parent a90b95f commit deeb473

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

core/BranchConfig.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,8 @@ void BranchConfig::Print() const {
189189
VectorConfig<float>::Print();
190190
std::cout << "\nInteger fields:" << std::endl;
191191
VectorConfig<int>::Print();
192-
std::cout << "\nBoolean fields:" << std::endl;
192+
const std::string boolean_fields_empty_message = VectorConfig<bool>::map_.empty() ? " no boolean fields in this branch" : "";
193+
std::cout << "\nBoolean fields:" << boolean_fields_empty_message << std::endl << std::endl;
193194
VectorConfig<bool>::Print();
194195
// std::cout << std::endl;
195196
}

0 commit comments

Comments
 (0)