Skip to content

Commit 883105a

Browse files
committed
Enable redundant self cop
1 parent b4f485d commit 883105a

File tree

3 files changed

+2
-4
lines changed

3 files changed

+2
-4
lines changed

.rubocop.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,6 @@ Style/AndOr:
2121
Enabled: false
2222
Style/Documentation:
2323
Enabled: false
24-
Style/RedundantSelf:
25-
Enabled: false
2624
Style/RedundantReturn:
2725
Enabled: false
2826
Style/SpaceAfterComma:

lib/capistrano/configuration/server.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ def select?(options)
3434
when :exclude
3535
!callable.call(self)
3636
else
37-
self.fetch(k) == v
37+
fetch(k) == v
3838
end
3939
return false unless result
4040
end

lib/capistrano/dsl.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,4 +59,4 @@ def run_locally(&block)
5959
end
6060
end
6161
end
62-
self.extend Capistrano::DSL
62+
extend Capistrano::DSL

0 commit comments

Comments
 (0)