Skip to content

Conversation

@polldo
Copy link
Contributor

@polldo polldo commented Dec 14, 2021

Motivation

During config init if the default arduino directory (arduino15) doesn't exist then we want to create it rather than returning an error.

Change description

the check if configPath.NotExist() { is not mandatory because configPath.MkdirAll() doesn't do anything if the directory exists already. However I put it to avoid cases where the call to MkdirAll fails even if the directory already exists.

Additional Notes

Reviewer checklist

  • PR address a single concern.
  • PR title and description are properly filled.
  • Changes will be merged in main.
  • Changes are covered by tests.
  • Logging is meaningful in case of troubleshooting.
  • History is clean, commit messages are meaningful (see CONTRIBUTING.md) and are well formatted.

@polldo polldo requested a review from glumia December 14, 2021 09:54
Copy link
Contributor

@glumia glumia left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm!

@polldo polldo merged commit 053802f into main Dec 14, 2021
@polldo polldo deleted the polldo/make-arduino15 branch December 14, 2021 14:55
polldo pushed a commit that referenced this pull request Sep 2, 2022
During 'config init' if the default arduino directory (arduino15) doesn't exist then we're going to create it rather than returning an error
polldo pushed a commit that referenced this pull request Sep 2, 2022
During 'config init' if the default arduino directory (arduino15) doesn't exist then we're going to create it rather than returning an error
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.

2 participants