No need for a guard
@@ -201,10 +201,8 @@ RunTaskCommand::run(const spi::Bucket & bucket, std::shared_ptr<vespalib::IDestr
if (_task) {
_task->run(bucket, std::move(onComplete));
}
- if (_afterRun) {
_afterRun.reset();
}
-}
void
RunTaskCommand::print(std::ostream& out, bool verbose, const std::string& indent) const {
