Skip to content

Commit

Permalink
fix flow issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Brianzchen committed Mar 17, 2024
1 parent a8c67d7 commit c004ded
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions cli/src/commands/runTests.js
@@ -1,6 +1,4 @@
// @flow
import fileSys from 'fs';

import {child_process, fs, os, path} from '../lib/node.js';
import {copyFile, recursiveRmdir} from '../lib/fileUtils.js';
import {gitHubClient} from '../lib/github.js';
Expand Down Expand Up @@ -491,12 +489,8 @@ async function removeTrashFromBinDir() {
.filter(name => !checkFlowFilename(name))
.forEach(async el => {
const dir = path.resolve(BIN_DIR, el);
if (fs.exists(dir)) {
if (fileSys.lstatSync(dir).isDirectory()) {
fs.rm(dir, {recursive: true});
} else {
await fs.unlink(dir);
}
if (!fs.exists(dir)) {
await fs.unlink(dir);
}
});
}
Expand Down

0 comments on commit c004ded

Please sign in to comment.