Commit 8f42ba13 authored by Max Kellermann's avatar Max Kellermann

output/Internal: simplify "return" statements in IteratePause()

parent 5990017d
......@@ -127,16 +127,12 @@ AudioOutput::BeginPause() noexcept
bool
AudioOutput::IteratePause() noexcept
{
bool success;
try {
const ScopeUnlock unlock(mutex);
success = ao_plugin_pause(*this);
return ao_plugin_pause(*this);
} catch (const std::runtime_error &e) {
FormatError(e, "\"%s\" [%s] failed to pause",
name, plugin.name);
success = false;
return false;
}
return success;
}
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