-
Notifications
You must be signed in to change notification settings - Fork 47
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
Add Adobeair #801
Add Adobeair #801
Conversation
if (version == null) { | ||
regeditFileContent = | ||
"REGEDIT4\n" + | ||
"\n" + |
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 part is the same, so you could actually change the code to:
regeditFileContent =
"REGEDIT4\n" +
"\n" +
"[-HKEY_CURRENT_USER\\Software\\Wine]";
if (version) {
...
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.
No it is not if you look well
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.
Ah the "-" in front of HKEY is different. Didn't see that.
Still would prefer
if (version)
over
if (version == null)
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.
Not sure because if version is undefined, then, we switch back to the getter. The I think in this particular case, we really need version to be explicitely null
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 see. It's not so nice from an API perspective.
Follow up #790