@@ -1814,7 +1814,9 @@ Result<DataFile> DataFileFromJson(
18141814 // Parse CountMap: {"keys": [int, ...], "values": [long, ...]}
18151815 auto parse_int_map = [&](std::string_view key,
18161816 std::map<int32_t , int64_t >& target) -> Status {
1817- if (!json.contains (key) || json.at (key).is_null ()) return {};
1817+ if (!json.contains (key) || json.at (key).is_null ()) {
1818+ return {};
1819+ }
18181820 ICEBERG_ASSIGN_OR_RAISE (auto map_json, GetJsonValue<nlohmann::json>(json, key));
18191821 ICEBERG_ASSIGN_OR_RAISE (auto keys,
18201822 GetTypedJsonValue<std::vector<int32_t >>(map_json.at (" keys" )));
@@ -1837,7 +1839,9 @@ Result<DataFile> DataFileFromJson(
18371839 // Parse BinaryMap: {"keys": [int, ...], "values": [...]}
18381840 auto parse_binary_map = [&](std::string_view key,
18391841 std::map<int32_t , std::vector<uint8_t >>& target) -> Status {
1840- if (!json.contains (key) || json.at (key).is_null ()) return {};
1842+ if (!json.contains (key) || json.at (key).is_null ()) {
1843+ return {};
1844+ }
18411845 ICEBERG_ASSIGN_OR_RAISE (auto map_json, GetJsonValue<nlohmann::json>(json, key));
18421846 ICEBERG_ASSIGN_OR_RAISE (auto keys,
18431847 GetJsonValue<std::vector<int32_t >>(map_json, " keys" ));
0 commit comments