Skip to content

Commit

Permalink
Rubocop: Fix Style/DoubleNegation
Browse files Browse the repository at this point in the history
  • Loading branch information
alexjfisher committed Feb 18, 2018
1 parent f384cf6 commit e7270fd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
5 changes: 0 additions & 5 deletions .rubocop_todo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,6 @@ Style/AccessorMethodName:
- 'lib/puppet/provider/jenkins_authorization_strategy/cli.rb'
- 'lib/puppet/provider/jenkins_security_realm/cli.rb'

# Offense count: 1
Style/DoubleNegation:
Exclude:
- 'lib/puppet/provider/jenkins_job/cli.rb'

# Offense count: 33
# Configuration parameters: AllowedVariables.
Style/GlobalVars:
Expand Down
3 changes: 2 additions & 1 deletion lib/puppet/provider/jenkins_job/cli.rb
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,8 @@ def self.get_job(job, catalog = nil)
# currently unused
def self.job_enabled(job, catalog = nil)
raw = clihelper(['job_enabled', job], catalog: catalog)
!!(raw =~ %r{true})
return true if raw =~ %r{true}
false
end
private_class_method :job_enabled

Expand Down

0 comments on commit e7270fd

Please # to comment.