diff --git a/mrblib/array.rb b/mrblib/array.rb index 1ae20489e3..d151d93508 100644 --- a/mrblib/array.rb +++ b/mrblib/array.rb @@ -193,7 +193,7 @@ def <=>(other) def delete(key, &block) len = self.length ret = self.__delete(key) - return block.call() if len == self.length + return block&.call() if len == self.length ret end