Skip to content

Commit

Permalink
Rubocop: Style/ZeroLengthPredicate
Browse files Browse the repository at this point in the history
  • Loading branch information
fh committed Mar 23, 2016
1 parent 88552a7 commit aae051e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
6 changes: 0 additions & 6 deletions .rubocop_todo.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,6 @@

# Offense count: 39
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, SupportedStyles, ConsistentQuotesInMultiline.
# SupportedStyles: single_quotes, double_quotes
Style/StringLiterals:
Enabled: false

# Offense count: 1
Style/ZeroLengthPredicate:
Exclude:
- 'recipes/default.rb'
2 changes: 1 addition & 1 deletion recipes/default.rb
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@

syslogdir = "/etc/rsyslog.d"

if node['papertrail']['watch_files'] && node['papertrail']['watch_files'].length > 0
if node['papertrail']['watch_files'] && !node['papertrail']['watch_files'].empty?
watch_file_array = []

if node['papertrail']['watch_files'].respond_to?(:keys)
Expand Down

0 comments on commit aae051e

Please sign in to comment.