Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove call to mkdirp.sync() in FileWriter constructor #104

Merged
merged 1 commit into from Oct 15, 2017

Conversation

bryanforbes
Copy link
Contributor

When FileWriter is used to get a ConsoleWriter (such as in the text report), the call to mkdirp.sync() in the constructor creates a directory that is never used. FileWriter#copyFile() and FileWriter#writeFile() already call mkdirp.sync() before writing files, so the call in the constructor isn't needed anyway.

@coveralls
Copy link

coveralls commented Oct 11, 2017

Coverage Status

Coverage decreased (-1.01%) to 87.992% when pulling 838c029 on bryanforbes:file-writer-fix into 9c465f4 on istanbuljs:master.

@bcoe bcoe merged commit 58eb79d into istanbuljs:master Oct 15, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants