diff --git a/third-party/thrift/src/thrift/compiler/generate/t_mstch_go_generator.cc b/third-party/thrift/src/thrift/compiler/generate/t_mstch_go_generator.cc index 9c4a75d0837e01..979bdfef25f833 100644 --- a/third-party/thrift/src/thrift/compiler/generate/t_mstch_go_generator.cc +++ b/third-party/thrift/src/thrift/compiler/generate/t_mstch_go_generator.cc @@ -438,7 +438,7 @@ class mstch_go_field : public mstch_field { bool has_default_value = (field_->default_value() != nullptr); if (is_optional_() && has_default_value) { auto real_type = field_->type()->get_true_type(); - bool is_container = (real_type->is_map() || real_type->is_set()); + bool is_container = real_type->is_map(); return is_container; } return is_pointer_();