Skip to content

Move file update call outside of forEach#8

Open
kytta wants to merge 1 commit intoJoe-Withey:masterfrom
kytta:feature/less-rewrites
Open

Move file update call outside of forEach#8
kytta wants to merge 1 commit intoJoe-Withey:masterfrom
kytta:feature/less-rewrites

Conversation

@kytta
Copy link
Copy Markdown

@kytta kytta commented Nov 15, 2019

I figured that file is being written twice, if both script and link match the string. I think there was just a mistake and you meant to move the writeFileSync part outside of the loop (judging by the fact that shouldUpdate is also outside of the loop)

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.

1 participant