-
-
Save raycrawford/33e8a8175bbaf1a5ab09 to your computer and use it in GitHub Desktop.
rubocop error
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PS C:\Users\crawford.ra\Documents\chef\pg_chef_file-repo> rubocop . | |
Inspecting 4 files | |
...W | |
Offenses: | |
recipes/linux.rb:33:68: C: Don't use parentheses around the condition of an if. | |
fail "no #{node['platform']} Apache2 package_name defined." if (true) | |
^^^^^^ | |
recipes/linux.rb:33:69: W: Literal true appeared in a condition. | |
fail "no #{node['platform']} Apache2 package_name defined." if (true) | |
^^^^ | |
4 files inspected, 2 offenses detected | |
PS C:\Users\crawford.ra\Documents\chef\pg_chef_file-repo> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment