Commit 6dca7b39 authored by Quentin Khan's avatar Quentin Khan

Remove useless if in FNode::getParticleCount

`getParticleContainer` cannot return `nullptr` because the particle container is
part of the node.
parent 2988c278
...@@ -433,10 +433,7 @@ public: ...@@ -433,10 +433,7 @@ public:
/// Particle count for the container /// Particle count for the container
std::size_t getParticleCount() const noexcept { std::size_t getParticleCount() const noexcept {
if(getParticleContainer()) { return getParticleContainer()->size();
return getParticleContainer()->size();
}
return 0;
} }
/** /**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment