Skip to content

Commit

Permalink
chore: Remove unnecessary check when creating subjects in test suite
Browse files Browse the repository at this point in the history
Co-authored-by: Leah <github.leah@hrmny.sh>
  • Loading branch information
rschristian and ForsakenHarmony committed Mar 29, 2022
1 parent 0f97190 commit 97b5bdd
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions packages/cli/tests/lib/output.js
@@ -1,4 +1,4 @@
const { access, mkdir } = require('fs').promises;
const { mkdir } = require('fs').promises;
const copy = require('ncp');
const { resolve } = require('path');
const { promisify } = require('util');
Expand All @@ -11,11 +11,7 @@ async function tmpDir() {
.toString(36)
.replace(/[^a-z]+/g, '')
.substr(0, 12);
try {
await access(output);
} catch {
await mkdir(output, { recursive: true });
}
await mkdir(output, { recursive: true });
return resolve(output, str);
}

Expand Down

0 comments on commit 97b5bdd

Please sign in to comment.