-
-
Notifications
You must be signed in to change notification settings - Fork 64
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
Separated out the redundant directory check code #37
Separated out the redundant directory check code #37
Conversation
Thanks for opening this pull request! Please check out our contributing guidelines. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It seems the current approach is pretty straight forward and I don't find the respective change as required.
Feel free to prove I'm wrong 👍
The separation of this from inside the |
src/commands/init.js
Outdated
@@ -88,6 +80,22 @@ const initTasks = async () => { | |||
)}`, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You could move this part out of the helper method.
There were the following issues with this Pull Request
You may need to change the commit messages to comply with the repository contributing guidelines. 🤖 This comment was generated by commitlint[bot]. Please report issues here. Happy coding! |
e3306fc
to
0279232
Compare
There were the following issues with this Pull Request
You may need to change the commit messages to comply with the repository contributing guidelines. 🤖 This comment was generated by commitlint[bot]. Please report issues here. Happy coding! |
…eck code into a separate function.
0279232
to
9d5d5bb
Compare
@jamesgeorge007 , can you give me an idea as to how to pass this commit linter's tests? |
Also, it might be much more helpful and even provide a cleaner experience if this was a part of the Git pre commit hook like husky. |
@Cazaimi the respective update for commit message conventions was brought about by a You may check out these guidelines |
Closing due to inactivity. |
Description
In order to refactor the code, the change includes separation of the redundant directory check, which checks if
config.json
andteachcode-solutions
already exists in the pwd, into a new function as it is a discrete operation of its own.Fixes #16
Type of change
Checklist: