mirror of
https://github.com/github/codeql-action.git
synced 2026-04-05 11:12:16 +00:00
Remove calls to fs.rmdirSync
This commit is contained in:
2
lib/util.js
generated
2
lib/util.js
generated
@@ -77,7 +77,7 @@ async function withTmpDir(body) {
|
||||
const symlinkSubdir = path.join(tmpDir, "symlink");
|
||||
fs.symlinkSync(realSubdir, symlinkSubdir, "dir");
|
||||
const result = await body(symlinkSubdir);
|
||||
fs.rmdirSync(tmpDir, { recursive: true });
|
||||
fs.rmSync(tmpDir, { recursive: true, force: true });
|
||||
return result;
|
||||
}
|
||||
exports.withTmpDir = withTmpDir;
|
||||
|
||||
Reference in New Issue
Block a user