There was an error while loading. Please reload this page.
Promise.resolve
1 parent d235931 commit aaa0143Copy full SHA for aaa0143
1 file changed
pr-checks/changelog/validate.test.mts
@@ -23,7 +23,7 @@ async function withTmpFile<T>(
23
try {
24
const filePath = path.join(tmpDir, baseFileName);
25
fs.writeFileSync(filePath, contents);
26
- return await Promise.resolve(body(filePath));
+ return await body(filePath);
27
} finally {
28
fs.rmSync(tmpDir, { recursive: true, force: true });
29
}
0 commit comments