Skip to content

Commit

Permalink
Remove duplication
Browse files Browse the repository at this point in the history
  • Loading branch information
vbrazo committed May 28, 2018
1 parent ecad86b commit 2fad140
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions lib/faker/hipster.rb
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,7 @@ def paragraphs(paragraph_count = 3, supplemental = false)
end

def paragraph_by_chars(chars = 256, supplemental = false)
paragraph = paragraph(3, supplemental)

paragraph += ' ' + paragraph(3, supplemental) while paragraph.length < chars

paragraph[0...chars - 1] + '.'
Faker::Lorem.paragraph_by_chars(chars, supplemental)
end

private
Expand Down

0 comments on commit 2fad140

Please sign in to comment.