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 better raise syntax to suppress compatibility warnings. #25

Merged
merged 1 commit into from Sep 18, 2013
Merged

Use better raise syntax to suppress compatibility warnings. #25

merged 1 commit into from Sep 18, 2013

Conversation

ojacobson
Copy link

Ruby Enterprise (ruby 1.8.7 (2009-06-12 patchlevel 174) [x86_64-linux], MBARI 0x6770, Ruby Enterprise Edition 2009.10) complains about the raise lines in the java_ks provider:

/var/lib/puppet/lib/puppet/provider/java_ks/keytool.rb:130: warning: parenthesize argument(s) for future version

Adding a comma here suppresses the warning and seems to be more in line with Ruby community conventions.

(Neither version of this change cause problems in 1.8.9.)

Ruby Enterprise (ruby 1.8.7 (2009-06-12 patchlevel 174) [x86_64-linux], MBARI
0x6770, Ruby Enterprise Edition 2009.10) complains about the `raise` lines in
the java_ks provider:

    /var/lib/puppet/lib/puppet/provider/java_ks/keytool.rb:130: warning: parenthesize argument(s) for future version

Adding a comma here suppresses the warning and seems to be more in line with
Ruby community conventions.
hunner added a commit that referenced this pull request Sep 18, 2013
Use better `raise` syntax to suppress compatibility warnings.
@hunner hunner merged commit c61d3af into puppetlabs:master Sep 18, 2013
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