Skip to content

Commit

Permalink
(CONT-792) - Correct Style/TernaryParentheses
Browse files Browse the repository at this point in the history
  • Loading branch information
jordanbreen28 committed Apr 19, 2023
1 parent 45653ef commit c4b5bbf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 10 deletions.
8 changes: 0 additions & 8 deletions .rubocop_todo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -168,14 +168,6 @@ Style/OptionalBooleanParameter:
- 'lib/puppet/functions/postgresql/postgresql_password.rb'
- 'lib/puppet/type/postgresql_psql.rb'

# Offense count: 2
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: EnforcedStyle, AllowSafeAssignment.
# SupportedStyles: require_parentheses, require_no_parentheses, require_parentheses_when_complex
Style/TernaryParentheses:
Exclude:
- 'spec/spec_helper_local.rb'

# Offense count: 137
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: EnforcedStyleForMultiline.
Expand Down
4 changes: 2 additions & 2 deletions spec/spec_helper_local.rb
Original file line number Diff line number Diff line change
Expand Up @@ -118,9 +118,9 @@ def param(type, title, param)
when 'openbsd'
'openbsd'
when 'redhat'
facts[:operatingsystemrelease].to_i >= 7 ? 'systemd' : 'redhat'
(facts[:operatingsystemrelease].to_i >= 7) ? 'systemd' : 'redhat'
when 'suse'
facts[:operatingsystemmajrelease].to_i >= 12 ? 'systemd' : 'redhat'
(facts[:operatingsystemmajrelease].to_i >= 12) ? 'systemd' : 'redhat'
when 'windows'
'windows'
else
Expand Down

0 comments on commit c4b5bbf

Please sign in to comment.