filter/two: use `if` with initializer
This commit is contained in:
parent
fc5d258890
commit
0676ab7f47
|
@ -16,8 +16,7 @@ TwoFilters::FilterPCM(std::span<const std::byte> src)
|
||||||
std::span<const std::byte>
|
std::span<const std::byte>
|
||||||
TwoFilters::Flush()
|
TwoFilters::Flush()
|
||||||
{
|
{
|
||||||
auto result = first->Flush();
|
if (auto result = first->Flush(); result.data() != nullptr)
|
||||||
if (result.data() != nullptr)
|
|
||||||
/* Flush() output from the first Filter must be
|
/* Flush() output from the first Filter must be
|
||||||
filtered by the second Filter */
|
filtered by the second Filter */
|
||||||
return second->FilterPCM(result);
|
return second->FilterPCM(result);
|
||||||
|
|
Loading…
Reference in New Issue