Fix clang warning

This commit is contained in:
Eelco Dolstra 2021-09-14 08:15:33 +02:00
parent 4ed66735b6
commit 1ba993d07c

View file

@ -244,7 +244,8 @@ std::unique_ptr<FinishSink> sourceToSink(std::function<void(Source &)> fun)
if (!cur.empty()) (*coro)(false);
}
void finish() {
void finish() override
{
if (!coro) return;
if (!*coro) abort();
(*coro)(true);