Skip to content

Commit

Permalink
iox-#590 Remove double check in posix::Timer
Browse files Browse the repository at this point in the history
Signed-off-by: Simon Hoinkis <[email protected]>
  • Loading branch information
mossmaurice committed Jan 19, 2022
1 parent 1988e12 commit 6a3ccf2
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions iceoryx_hoofs/source/posix_wrapper/timer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<TimerError> Timer::OsTimer::start(const RunMode runMode, const CatchUpPolicy catchUpPolicy) noexcept
Expand Down

0 comments on commit 6a3ccf2

Please sign in to comment.