summaryrefslogtreecommitdiff
path: root/array.rb
diff options
context:
space:
mode:
Diffstat (limited to 'array.rb')
-rw-r--r--array.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/array.rb b/array.rb
index 93ca4f3a3e..f45e6a0d5e 100644
--- a/array.rb
+++ b/array.rb
@@ -298,7 +298,7 @@ class Array
while Primitive.cexpr!(%q{ ary_fetch_next(self, LOCAL_PTR(_i), LOCAL_PTR(value)) })
return value if yield(value)
end
- if_none_proc ? if_none_proc.call : nil
+ if_none_proc&.call
end
end
end