From 321f83298180e7cba6c4118b9b06952c0d4aa557 Mon Sep 17 00:00:00 2001 From: Yaacov Rydzinski Date: Mon, 27 Oct 2025 21:24:39 +0200 Subject: [PATCH] polish(withCleanup): condense one line --- src/execution/withCleanup.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/execution/withCleanup.ts b/src/execution/withCleanup.ts index 8c93b5de39..6dd32bfacc 100644 --- a/src/execution/withCleanup.ts +++ b/src/execution/withCleanup.ts @@ -33,9 +33,8 @@ export function withCleanup( const result = await generator.next(); if (result.done) { await finish(); - return result; } - return { value: result.value, done: false }; + return result; } catch (error) { await finish(); throw error;