Commit ec3fe90b authored by Ildar Musin's avatar Ildar Musin Committed by yonghong-song

Fixed Context::enable_probe method. (#2006)

Fixed Context::enable_probe method so that it does not discard the result of Probe::enable.
parent 4263e1ae
......@@ -311,10 +311,8 @@ bool Context::enable_probe(const std::string &probe_name,
}
}
if (found_probe != nullptr) {
found_probe->enable(fn_name);
return true;
}
if (found_probe != nullptr)
return found_probe->enable(fn_name);
return false;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment