Skip to content
This repository has been archived by the owner on Dec 10, 2019. It is now read-only.

Fix errors when file type not found for pattern #26

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Josh68
Copy link

@Josh68 Josh68 commented Mar 29, 2018

I kept getting errors if I didn't define scss or js files for patterns, if I had those types in my tabsToAdd option. I think this is a decent fix, but not sure why existing tabFileNameStats.isFile() was not preventing the attempt to copy a non-existent file. In this case, tabFileNameStats is definitively set to null unless the fs.statSync succeeds in the try block.

I kept getting errors if I didn't define scss or js files for patterns, if I had those types in my tabsToAdd option. I think this is a decent fix, but not sure why existing tabFileNameStats.isFile() was not preventing the attempt to copy a non-existent file. In this case, tabFileNameStats is definitively set to null unless the statSync succeeds in the try block.
@bmuenzenmeyer bmuenzenmeyer self-requested a review April 3, 2018 19:00
@bmuenzenmeyer bmuenzenmeyer self-assigned this Apr 3, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants