Skip to content

(MODULES-2804) fix the misuse of read method of Win32::Registry #96

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

Closed
wants to merge 1 commit into from
Closed

Conversation

digglife
Copy link
Contributor

@digglife digglife commented Nov 9, 2015

Please refer to the following issue ticket.
https://tickets.puppetlabs.com/browse/MODULES-2804

@ferventcoder
Copy link
Contributor

@digglife So is this just fixing up the specs Or is there more to go here?

Nevermind, I see that this has both fixes in it.

@ferventcoder ferventcoder changed the title (MODULES-2804)fix the misuse of read method of Win32::Registry (MODULES-2804) fix the misuse of read method of Win32::Registry Nov 9, 2015
@ferventcoder
Copy link
Contributor

Thanks!

@digglife digglife deleted the fix branch November 22, 2015 00:55
@@ -110,7 +110,7 @@ def pending_file_rename_operations?
with_key(path) do |reg|
renames = reg.read('PendingFileRenameOperations') rescue nil
Copy link
Contributor

Choose a reason for hiding this comment

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

Probably should have used a destructuring assignment here for readability (to avoid the array indexing), like

rename_type, renames = reg.read('PendingFileRenameOperations') rescue nil

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.

3 participants