Skip to content

Commit c6c1f38

Browse files
author
nullccxsy
committed
fix cpp-linter
1 parent 581023b commit c6c1f38

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/iceberg/schema.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -444,11 +444,11 @@ class PruneColumnVisitor {
444444
}
445445

446446
Status ProjectStruct(const SchemaField& field, std::unique_ptr<Type>* out) const {
447-
if (out && (*out)->type_id() != TypeId::kStruct) {
447+
if (*out && (*out)->type_id() != TypeId::kStruct) {
448448
return InvalidArgument("Project struct {}:{}, but result is not StructType",
449449
field.name(), field.field_id());
450450
}
451-
if (out == nullptr) {
451+
if (*out == nullptr) {
452452
*out = std::make_unique<StructType>(std::vector<SchemaField>{});
453453
}
454454
return {};

0 commit comments

Comments
 (0)