From a32a37ba96ab898dd76cc47c402ed4d6fc56a7d6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matthias=20M=C3=B6ller?= Date: Fri, 8 Nov 2024 18:25:07 +0100 Subject: [PATCH] removes warning --- src/chaos/BernoulliSequence.hpp | 2 -- 1 file changed, 2 deletions(-) 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;