!304 【轻量级 PR】:修改codestyle

Merge pull request !304 from dml-hw/N/A
This commit is contained in:
openharmony_ci
2021-08-18 12:52:17 +00:00
committed by Gitee
@@ -90,6 +90,10 @@ bool ChartComponent::CreateNativeViews()
}
ReleaseJerryValue(hasTypeProp, typeStrHandler, attrsPropValue, VA_ARG_END_FLAG);
if (!strcmp(chartType_, LINE)) {
if (chartView_) {
delete (chartView_);
chartView_ = nullptr;
}
chartView_ = new UIChartPolyline();
}
if (chartView_ == nullptr) {