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

Internal improvement: Clean up develop and console code #2095

Merged
merged 13 commits into from Jun 27, 2019

Conversation

eggplantzzz
Copy link
Contributor

In an effort to provide better maintainability, this PR seeks to clarify the logic used by the console and develop commands. Callback-style functions are typically converted to Promise-based structures and there are also a handful of syntax updates.

@coveralls
Copy link

coveralls commented Jun 12, 2019

Coverage Status

Coverage increased (+0.1%) to 70.285% when pulling a3c1e0f on clean-up-develop into 5071514 on develop.

@CruzMolina CruzMolina requested a review from gnidan June 20, 2019 16:41
Copy link
Contributor

@CruzMolina CruzMolina left a comment

Choose a reason for hiding this comment

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

Looks good! Left a suggestion.

Would be really nice to have tests for this stuff, but probably out of scope for this PR. 🦅

);
})
fse
.readFile(
Copy link
Contributor

Choose a reason for hiding this comment

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

can we use fse.readFileSync here?
that way we can keep provision a sync method and remove Promise.all (maybe rename the promises array to jsonBlobs).

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sure, that would definitely make it a little easier to read! However, I wonder where it is especially useful to use async methods for performance perks...any thoughts @gnidan?


// If our code includes an await, add special processing to ensure it's evaluated properly.
if (match) {
var assign = match[1];
Copy link
Contributor

Choose a reason for hiding this comment

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

Same question here re: var or let

@eggplantzzz eggplantzzz merged commit af801fd into develop Jun 27, 2019
@eggplantzzz eggplantzzz deleted the clean-up-develop branch June 27, 2019 14:22
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.

None yet

5 participants