Skip to content

Commit e009cc9

Browse files
automated style fixes
1 parent 8c80fa7 commit e009cc9

File tree

2 files changed

+4
-8
lines changed

2 files changed

+4
-8
lines changed

src/rj_benchmarking/include/rj_benchmarking/registry_publisher.hpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,15 @@ class RegistryPublisher {
88
public:
99
static std::shared_ptr<RegistryPublisher> getRegistryPub() {
1010
// static local variables are intialized once and persist out of scope and subsequent calls
11-
static std::shared_ptr<RegistryPublisher> registry_pub
12-
= std::make_shared<RegistryPublisher>(); //{new RegistryPublisher()};
11+
static std::shared_ptr<RegistryPublisher> registry_pub =
12+
std::make_shared<RegistryPublisher>(); //{new RegistryPublisher()};
1313
return registry_pub;
1414
}
1515

1616
void publish(const std::string& label, uint8_t robot_id, uint64_t time);
1717
RegistryPublisher() = default;
1818

1919
private:
20-
2120
// Private Constructor
2221
// RegistryPublisher() = default;
2322

src/rj_benchmarking/src/registry.cpp

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -40,13 +40,10 @@ Registry::~Registry() {
4040
// Print out data row by row
4141
for (size_t row = 0; row < max_rows_; ++row) {
4242
for (const auto& [label, timestamps] : registry_[i]) {
43-
if (row >= timestamps.size())
44-
{
43+
if (row >= timestamps.size()) {
4544
// sentinel value
4645
robot_csv << -1 << ',';
47-
}
48-
else
49-
{
46+
} else {
5047
robot_csv << timestamps[row] << ',';
5148
}
5249
}

0 commit comments

Comments
 (0)