Skip to content

Commit

Permalink
Fix Lint/ShadowingOuterLocalVariable
Browse files Browse the repository at this point in the history
  • Loading branch information
denisdefreyne committed Jan 17, 2015
1 parent 2badc42 commit 3801780
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
4 changes: 0 additions & 4 deletions .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,6 @@ Style/AsciiComments:



# Offense count: 1
Lint/ShadowingOuterLocalVariable:
Enabled: false

# Offense count: 16
Lint/UselessAssignment:
Enabled: false
Expand Down
2 changes: 1 addition & 1 deletion lib/cri/string_formatter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ class StringFormatter
#
# @return [Array<String>] A list of paragraphs in the string
def to_paragraphs(s)
lines = s.scan(/([^\n]+\n|[^\n]*$)/).map { |s| s[0].strip }
lines = s.scan(/([^\n]+\n|[^\n]*$)/).map { |l| l[0].strip }

paragraphs = [[]]
lines.each do |line|
Expand Down

0 comments on commit 3801780

Please sign in to comment.