Skip to content
This repository has been archived by the owner on Oct 1, 2024. It is now read-only.

fix example issue for protable mode #509

Merged
merged 1 commit into from
Mar 29, 2018
Merged

fix example issue for protable mode #509

merged 1 commit into from
Mar 29, 2018

Conversation

Sneezry
Copy link
Member

@Sneezry Sneezry commented Mar 29, 2018

Related issue: #415

@Sneezry Sneezry requested review from lirenhe and ihere1 March 29, 2018 08:57
@@ -53,7 +53,17 @@ export class ArduinoSettings implements IArduinoSettings {
} else {
this._packagePath = path.join(process.env.HOME, ".arduino15");
}
this._sketchbookPath = this.preferences.get("sketchbook.path") || path.join(process.env.HOME, "Arduino");
Copy link
Contributor

Choose a reason for hiding this comment

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

combine them to a function ?

Copy link
Member Author

Choose a reason for hiding this comment

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

The second part, here is path.join(process.env.HOME, "Arduino"), is related with platform, so I do not think we can get any benefit from combining them to a function

@Sneezry Sneezry merged commit da12fe5 into master Mar 29, 2018
@Sneezry Sneezry deleted the zhe-example branch March 29, 2018 09:13
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.

3 participants