perf: update signatures of functions in Controller

This commit is contained in:
Horror Proton
2023-04-24 00:55:26 +08:00
parent 8c7f1f1940
commit 9bf32dbd5a
9 changed files with 29 additions and 38 deletions

View File

@@ -17,7 +17,7 @@ std::shared_ptr<asst::Status> asst::InstHelper::status() const
}
bool asst::InstHelper::need_exit() const
{
return m_inst ? m_inst->need_exit() : false;
return m_inst != nullptr && m_inst->need_exit();
}
bool asst::InstHelper::sleep(unsigned millisecond) const