diff --git a/iceoryx_hoofs/source/posix_wrapper/timer.cpp b/iceoryx_hoofs/source/posix_wrapper/timer.cpp index a01e261c846..f4b4a9de347 100644 --- a/iceoryx_hoofs/source/posix_wrapper/timer.cpp +++ b/iceoryx_hoofs/source/posix_wrapper/timer.cpp @@ -265,10 +265,7 @@ void Timer::OsTimer::executeCallback() noexcept { cxx::Ensures(m_isInitialized && m_callback && "Timer fired but state is invalid"); - if (m_isInitialized && m_callback) - { - m_callback(); - } + m_callback(); } cxx::expected Timer::OsTimer::start(const RunMode runMode, const CatchUpPolicy catchUpPolicy) noexcept