diff --git a/pr-checks/changelog/validate.test.mts b/pr-checks/changelog/validate.test.mts index a5ad97e97..ea07d93cc 100644 --- a/pr-checks/changelog/validate.test.mts +++ b/pr-checks/changelog/validate.test.mts @@ -23,7 +23,7 @@ async function withTmpFile( try { const filePath = path.join(tmpDir, baseFileName); fs.writeFileSync(filePath, contents); - return await Promise.resolve(body(filePath)); + return await body(filePath); } finally { fs.rmSync(tmpDir, { recursive: true, force: true }); }