diff --git a/src/chaos/BernoulliSequence.hpp b/src/chaos/BernoulliSequence.hpp index ba766d4..d851cb7 100644 --- a/src/chaos/BernoulliSequence.hpp +++ b/src/chaos/BernoulliSequence.hpp @@ -40,8 +40,6 @@ class BernoulliSequence : public Sequence } template Func> Fail &with(Func f, double weight = 1.0) { - if (!f) - return *this; exceptions.push_back(std::move(f)); weights.push_back(weight); return *this;