Skip to content

Commit a0819b3

Browse files
committed
1
1 parent 1d1602f commit a0819b3

1 file changed

Lines changed: 3 additions & 9 deletions

File tree

src/iceberg/catalog/rest/validator.cc

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424

2525
#include "iceberg/catalog/rest/types.h"
2626
#include "iceberg/result.h"
27+
#include "iceberg/util/formatter_internal.h"
2728
#include "iceberg/util/macros.h"
2829

2930
namespace iceberg::rest {
@@ -91,16 +92,9 @@ Status Validator::Validate(const UpdateNamespacePropertiesRequest& request) {
9192
std::back_inserter(common));
9293

9394
if (!common.empty()) {
94-
std::string keys;
95-
for (size_t i = 0; i < common.size(); ++i) {
96-
if (i) keys += ", ";
97-
keys += common[i];
98-
}
99-
10095
return Invalid(
101-
"Invalid namespace update: cannot simultaneously set and remove keys: "
102-
"[{}]",
103-
keys);
96+
"Invalid namespace update: cannot simultaneously set and remove keys: {}",
97+
common);
10498
}
10599
return {};
106100
}

0 commit comments

Comments
 (0)