Skip to content
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

replace exports with module.exports #166

Merged
merged 1 commit into from
May 13, 2018
Merged

Conversation

vaishnavachath
Copy link
Contributor

I have made the suggested changes. can you please review it.I did verify the exported objects before and after the change was made.
Issue #82

Copy link
Owner

@jadonk jadonk 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 enough. Thanks. Let's align on the few style questions for moving forward.

readEeproms: readEeproms,
readPlatform: readPlatform,

Copy link
Owner

Choose a reason for hiding this comment

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

Looks extraneous.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sorry i did not notice this , i copied the exports for the hw_X.js as the exports are same for these files, that was why the mistake was repeated, i will be more careful in future.

readEeproms: readEeproms,
readPlatform: readPlatform,

Copy link
Owner

Choose a reason for hiding this comment

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

Another one. Not sure why the blank lines.

readEeproms: readEeproms,
readPlatform: readPlatform,

Copy link
Owner

Choose a reason for hiding this comment

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

Again, extraneous. The repetition makes me wonder if the definition of what gets exported from these hw_X.js files should be common as they satisfy an internal API.

readEeproms: readEeproms,
readPlatform: readPlatform,

Copy link
Owner

Choose a reason for hiding this comment

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

Another one.

@@ -667,9 +665,10 @@ process.nextTick(run);
// Global variable assignments
// This section is broken out because it will eventually be deprecated
function setGlobals() {
Copy link
Owner

Choose a reason for hiding this comment

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

Given the way things are done, this could probably be f.setGlobals = function() {.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, that would be the better way , i will make the correction.

rcMotor: rcMotor,
rcEncoder: rcEncoder

Copy link
Owner

Choose a reason for hiding this comment

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

Another blank line. Inconsistent on ending with commas or not.

@jadonk jadonk merged commit bc480c0 into jadonk:master May 13, 2018
jadonk added a commit that referenced this pull request May 13, 2018
Style fixes as suggested in pull #166
@vaishnavachath
Copy link
Contributor Author

beagleboard#24

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