Skip to content

Commit 09c1e01

Browse files
steffen-vogel-opalrtPhilipp Jungkamp
authored andcommitted
fix code-style
Signed-off-by: Steffen Vogel <steffen.vogel@opal-rt.com>
1 parent 0aafb47 commit 09c1e01

3 files changed

Lines changed: 9 additions & 6 deletions

File tree

lib/mapping.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,6 @@ std::string MappingEntry::toString(unsigned index) const
313313
return ss.str();
314314
}
315315

316-
317316
Signal::Ptr MappingEntry::toSignal(unsigned index) const
318317
{
319318
auto name = toString(index);

lib/path.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ void * Path::runPoll()
8787
if (ret < 0)
8888
throw SystemError("Failed to poll");
8989

90-
logger->debug("returned from poll(2): ret={}", ret);
90+
logger->debug("Returned from poll(2): ret={}", ret);
9191

9292
for (unsigned i = 0; i < pfds.size(); i++) {
9393
auto &pfd = pfds[i];

lib/super_node.cpp

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -269,8 +269,10 @@ void SuperNode::startNodes()
269269
void SuperNode::startPaths()
270270
{
271271
for (auto *p : paths) {
272-
if (p->isEnabled())
273-
p->start();
272+
if (!p->isEnabled())
273+
continue;
274+
275+
p->start();
274276
}
275277
}
276278

@@ -291,8 +293,10 @@ void SuperNode::prepareNodes()
291293
void SuperNode::preparePaths()
292294
{
293295
for (auto *p : paths) {
294-
if (p->isEnabled())
295-
p->prepare(nodes);
296+
if (!p->isEnabled())
297+
continue;
298+
299+
p->prepare(nodes);
296300
}
297301
}
298302

0 commit comments

Comments
 (0)