Skip to content

Commit

Permalink
Apply code review suggestions from @RyanZim
Browse files Browse the repository at this point in the history
  • Loading branch information
SukkaW committed Oct 24, 2023
1 parent 9b248ee commit 990ffd2
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/output-file/index.js
Expand Up @@ -9,9 +9,7 @@ const pathExists = require('../path-exists').pathExists
async function outputFile (file, data, encoding = 'utf-8') {
const dir = path.dirname(file)

const itDoes = await pathExists(dir)

if (!itDoes) {
if (!(await pathExists(dir))) {
await mkdir.mkdirs(dir)
}

Expand Down

0 comments on commit 990ffd2

Please sign in to comment.