Skip to content

Commit

Permalink
Merge pull request #38 from airbrake/rubocop-style-redundant-self
Browse files Browse the repository at this point in the history
rubocop: fix the Style/RedundantSelf cop offenses
  • Loading branch information
kyrylo committed Jan 18, 2016
2 parents ee2af78 + fc17de0 commit 3d50059
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 16 deletions.
5 changes: 3 additions & 2 deletions .rubocop.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
inherit_from: .rubocop_todo.yml

# Explanations of all possible options:
# https://github.com/bbatsov/rubocop/blob/master/config/default.yml
AllCops:
Expand Down Expand Up @@ -90,3 +88,6 @@ Style/IndentArray:

Style/MutableConstant:
Enabled: true

Style/RedundantSelf:
Enabled: true
13 changes: 0 additions & 13 deletions .rubocop_todo.yml

This file was deleted.

2 changes: 1 addition & 1 deletion lib/airbrake-ruby/notice.rb
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ def context(params)
end

def raise_if_ignored
return unless self.ignored?
return unless ignored?
raise Airbrake::Error, 'cannot access ignored notice'
end

Expand Down

0 comments on commit 3d50059

Please sign in to comment.