more parfait ripples

changes due to previous changes in parfait api
This commit is contained in:
Torsten Ruger
2015-05-18 10:10:31 +03:00
parent d52cd82c92
commit d348e7afe7
6 changed files with 20 additions and 20 deletions

View File

@ -79,7 +79,7 @@ module Parfait
end
def grow_to(len)
raise "Only positive lenths, #{len}" if len <= 0
raise "Only positive lenths, #{len}" if len < 0
old_length = self.get_length
return if old_length >= len
internal_object_grow(len + 1)