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
Conversation
|
||
let cachedLocale; | ||
|
||
/** | ||
* Determines the current locale of this machine. | ||
* | ||
* @returns {String} | ||
* @returns {Promise<String>} |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
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'); |
There was a problem hiding this comment.
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
.
@cb1kenobi Changes made |
Use appcd-winreg in appcd-machine-id and appcd-response rather than manually spawning reg query
Add Java 9 registry key in jdk-plugin
Fix error in jdk-plugin when comparing jdk architectures