Skip to content

Commit 9cc5fe9

Browse files
committed
refactor: Rename loop variable in JSON parsing to improve clarity
1 parent dc676d0 commit 9cc5fe9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/iceberg/util/json_util_internal.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -227,9 +227,9 @@ Result<std::unordered_map<std::string, T>> FromJsonMap(
227227
return JsonParseError("Cannot parse '{}' from non-object: {}", key,
228228
SafeDumpJson(map_json));
229229
}
230-
for (const auto& [key, value] : map_json.items()) {
230+
for (const auto& [map_key, value] : map_json.items()) {
231231
ICEBERG_ASSIGN_OR_RAISE(auto entry, from_json(value));
232-
map[key] = std::move(entry);
232+
map[map_key] = std::move(entry);
233233
}
234234
}
235235
return map;

0 commit comments

Comments
 (0)