removed redundant condition (#1344)

Removes an additional condition that is not required.
master
Martin Schwörer 2018-07-27 13:45:59 +02:00 committed by Wally B. Feed
parent 8b329efc8e
commit 3af5086dc7
1 changed files with 3 additions and 9 deletions

View File

@ -233,18 +233,12 @@ void Submap3D::UpdateFromProto(const proto::Submap3D& submap_3d) {
set_num_range_data(submap_3d.num_range_data());
set_finished(submap_3d.finished());
if (submap_3d.has_high_resolution_hybrid_grid()) {
high_resolution_hybrid_grid_ =
submap_3d.has_high_resolution_hybrid_grid()
? common::make_unique<HybridGrid>(
submap_3d.high_resolution_hybrid_grid())
: nullptr;
high_resolution_hybrid_grid_ = common::make_unique<HybridGrid>(
submap_3d.high_resolution_hybrid_grid());
}
if (submap_3d.has_low_resolution_hybrid_grid()) {
low_resolution_hybrid_grid_ =
submap_3d.has_low_resolution_hybrid_grid()
? common::make_unique<HybridGrid>(
submap_3d.low_resolution_hybrid_grid())
: nullptr;
common::make_unique<HybridGrid>(submap_3d.low_resolution_hybrid_grid());
}
}