Skip to content

Commit 7af3d8e

Browse files
committed
Improve readability
1 parent b2c116e commit 7af3d8e

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

core/src/container.cpp

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ void ContainerBasePrivate::copyState(Interface::iterator external, const Interfa
260260
auto internals{ externalToInternalMap().equal_range(&*external) };
261261
for (auto& i = internals.first; i != internals.second; ++i) {
262262
// TODO: Not only update status, but full priority!
263-
setStatus<dir>(i->second, external->priority().status());
263+
setStatus<dir>(i->get<INTERNAL>(), external->priority().status());
264264
}
265265
return;
266266
}
@@ -690,9 +690,8 @@ bool SerialContainer::canCompute() const {
690690

691691
void SerialContainer::compute() {
692692
for (const auto& stage : pimpl()->children()) {
693-
if (!stage->pimpl()->canCompute())
694-
continue;
695-
stage->pimpl()->runCompute();
693+
if (stage->pimpl()->canCompute())
694+
stage->pimpl()->runCompute();
696695
}
697696
}
698697

0 commit comments

Comments
 (0)