Skip to content

Commit 71b62cc

Browse files
fix cpp-linter
1 parent 9c4beb2 commit 71b62cc

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

src/iceberg/avro/avro_schema_util.cc

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,7 @@ std::string SanitizeFieldName(std::string_view field_name) {
8181
}
8282

8383
// Process all characters
84-
for (size_t i = 0; i < field_name.size(); ++i) {
85-
char c = field_name[i];
84+
for (char c : field_name) {
8685
if (std::isalnum(static_cast<unsigned char>(c)) || c == '_') {
8786
result.push_back(c);
8887
} else {

0 commit comments

Comments
 (0)