Skip to content

Commit 7246f5a

Browse files
style(pre-commit): autofix
1 parent 9ac1144 commit 7246f5a

File tree

3 files changed

+11
-15
lines changed

3 files changed

+11
-15
lines changed

autoware_utils_debug/src/time_keeper.cpp

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -165,10 +165,9 @@ void TimeKeeper::end_track(const std::string & func_name)
165165
return;
166166
}
167167
if (current_time_node_->get_name() != func_name) {
168-
throw std::runtime_error(
169-
fmt::format(
170-
"You must call end_track({}) first, but end_track({}) is called",
171-
current_time_node_->get_name(), func_name));
168+
throw std::runtime_error(fmt::format(
169+
"You must call end_track({}) first, but end_track({}) is called",
170+
current_time_node_->get_name(), func_name));
172171
}
173172
const double processing_time = stop_watch_.toc(func_name);
174173
current_time_node_->set_time(processing_time);
@@ -182,10 +181,8 @@ void TimeKeeper::end_track(const std::string & func_name)
182181
void TimeKeeper::report()
183182
{
184183
if (current_time_node_ != nullptr) {
185-
throw std::runtime_error(
186-
fmt::format(
187-
"You must call end_track({}) first, but report() is called",
188-
current_time_node_->get_name()));
184+
throw std::runtime_error(fmt::format(
185+
"You must call end_track({}) first, but report() is called", current_time_node_->get_name()));
189186
}
190187
for (const auto & reporter : reporters_) {
191188
reporter(root_node_);

autoware_utils_geometry/include/autoware_utils_geometry/boost_geometry.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,6 @@ BOOST_GEOMETRY_REGISTER_POINT_2D( // NO
9999
autoware_utils_geometry::Point2d, double, cs::cartesian, x(), y()) // NOLINT
100100
BOOST_GEOMETRY_REGISTER_POINT_3D( // NOLINT
101101
autoware_utils_geometry::Point3d, double, cs::cartesian, x(), y(), z()) // NOLINT
102-
BOOST_GEOMETRY_REGISTER_RING(autoware_utils_geometry::LinearRing2d) // NOLINT
102+
BOOST_GEOMETRY_REGISTER_RING(autoware_utils_geometry::LinearRing2d) // NOLINT
103103

104104
#endif // AUTOWARE_UTILS_GEOMETRY__BOOST_GEOMETRY_HPP_

autoware_utils_geometry/src/geometry/alt_geometry.cpp

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -359,12 +359,11 @@ std::optional<alt::ConvexPolygon2d> envelope(const alt::Polygon2d & poly)
359359
poly.outer().begin(), std::prev(poly.outer().end()),
360360
[](const auto & a, const auto & b) { return a.y() < b.y(); });
361361

362-
return alt::ConvexPolygon2d::create(
363-
alt::PointList2d{
364-
{x_min_vertex->x(), y_min_vertex->y()},
365-
{x_min_vertex->x(), y_max_vertex->y()},
366-
{x_max_vertex->x(), y_max_vertex->y()},
367-
{x_max_vertex->x(), y_min_vertex->y()}});
362+
return alt::ConvexPolygon2d::create(alt::PointList2d{
363+
{x_min_vertex->x(), y_min_vertex->y()},
364+
{x_min_vertex->x(), y_max_vertex->y()},
365+
{x_max_vertex->x(), y_max_vertex->y()},
366+
{x_max_vertex->x(), y_min_vertex->y()}});
368367
}
369368

370369
bool equals(const alt::Point2d & point1, const alt::Point2d & point2)

0 commit comments

Comments
 (0)