We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent aea5175 commit 1ea23ddCopy full SHA for 1ea23dd
1 file changed
src/execution/withCleanup.ts
@@ -33,9 +33,8 @@ export function withCleanup<T>(
33
const result = await generator.next();
34
if (result.done) {
35
await finish();
36
- return result;
37
}
38
- return { value: result.value, done: false };
+ return result;
39
} catch (error) {
40
41
throw error;
0 commit comments