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

Use appcd-winreg where possible, add Java 9 registry key #75

Merged
merged 4 commits into from Oct 13, 2017
Merged

Use appcd-winreg where possible, add Java 9 registry key #75

merged 4 commits into from Oct 13, 2017

Conversation

ewanharris
Copy link
Contributor

@ewanharris ewanharris commented Oct 13, 2017

  • Use appcd-winreg in appcd-machine-id and appcd-response rather than manually spawning reg query

    • Update to handle any changes in the above
  • Add Java 9 registry key in jdk-plugin

  • Fix error in jdk-plugin when comparing jdk architectures


let cachedLocale;

/**
* Determines the current locale of this machine.
*
* @returns {String}
* @returns {Promise<String>}
Copy link
Contributor

Choose a reason for hiding this comment

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

I have never documented the resolved data type because I was unaware of a standardized way of doing so. Is this what people are doing these days?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I think it's an 'it depends' situation, the @returns docs only has an example of {Promise}, but the @async doc has an example like the above. Happy to back it out though as I'm indifferent/unsure.

Copy link
Contributor

Choose a reason for hiding this comment

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

Then, let's start using the @async keyword and @returns {Promise<type>}. @async should appear after the description, but before the first @param.

cachedLocale = m ? m[1].replace(/_/g, '-') : null;
}
} else {
let m = spawnSync('locale').stdout.toString().match(/^LANG="?([^".\s]+)/);
let { stdout } = await run('locale');
Copy link
Contributor

Choose a reason for hiding this comment

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

This should be a const.

@ewanharris
Copy link
Contributor Author

@cb1kenobi Changes made

@cb1kenobi cb1kenobi merged commit e858a70 into tidev:master Oct 13, 2017
@ewanharris ewanharris deleted the use_win_reg branch November 30, 2017 10:23
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.

None yet

2 participants