Skip to content

Commit aaa0143

Browse files
committed
Remove unneeded Promise.resolve
1 parent d235931 commit aaa0143

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

pr-checks/changelog/validate.test.mts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ async function withTmpFile<T>(
2323
try {
2424
const filePath = path.join(tmpDir, baseFileName);
2525
fs.writeFileSync(filePath, contents);
26-
return await Promise.resolve(body(filePath));
26+
return await body(filePath);
2727
} finally {
2828
fs.rmSync(tmpDir, { recursive: true, force: true });
2929
}

0 commit comments

Comments
 (0)