Skip to content

Commit

Permalink
Rubocop: empty else
Browse files Browse the repository at this point in the history
  • Loading branch information
CloCkWeRX committed Jan 10, 2017
1 parent db3dfdc commit fe3ed0b
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 10 deletions.
8 changes: 0 additions & 8 deletions .rubocop_todo.yml
Expand Up @@ -355,14 +355,6 @@ Style/EmptyCaseCondition:
Exclude:
- 'app/models/polymorphic/task.rb'

# Offense count: 1
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, SupportedStyles.
# SupportedStyles: empty, nil, both
Style/EmptyElse:
Exclude:
- 'app/models/polymorphic/task.rb'

# Offense count: 10
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, SupportedStyles.
Expand Down
2 changes: 0 additions & 2 deletions app/models/polymorphic/task.rb
Expand Up @@ -221,8 +221,6 @@ def set_due_date
Time.zone.now.midnight + 100.years
when "specific_time"
calendar ? parse_calendar_date : nil
else # due_later or due_asap
nil
end
end

Expand Down

0 comments on commit fe3ed0b

Please sign in to comment.