Skip to content

Commit b66eb1e

Browse files
author
Tom Maher
committed
rubocop: fix Style/SymbolProc
1 parent c3642b6 commit b66eb1e

File tree

2 files changed

+1
-9
lines changed

2 files changed

+1
-9
lines changed

.rubocop_todo.yml

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -711,14 +711,6 @@ Style/StructInheritance:
711711
Exclude:
712712
- 'test/test_ldap.rb'
713713

714-
# Offense count: 1
715-
# Cop supports --auto-correct.
716-
# Configuration parameters: IgnoredMethods.
717-
# IgnoredMethods: respond_to, define_method
718-
Style/SymbolProc:
719-
Exclude:
720-
- 'test/test_ldif.rb'
721-
722714
# Offense count: 4
723715
# Cop supports --auto-correct.
724716
# Configuration parameters: EnforcedStyle, SupportedStyles, AllowSafeAssignment.

test/test_ldif.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ def test_ldif
7676

7777
# Must test folded lines and base64-encoded lines as well as normal ones.
7878
def test_to_ldif
79-
data = File.open(TestLdifFilename, "rb") { |f| f.read }
79+
data = File.open(TestLdifFilename, "rb", &:read)
8080
io = StringIO.new(data)
8181

8282
# added .lines to turn to array because 1.9 doesn't have

0 commit comments

Comments
 (0)