lib/inch/api/get.rb in inch-0.4.7 vs lib/inch/api/get.rb in inch-0.4.8
- old
+ new
@@ -16,10 +16,10 @@
#
# @param object_names [Array<String>]
# @return [Array<CodeObject::Proxy::Base>]
def find_objects_with_names(object_names)
object_names.map do |object_name|
- if object = codebase.objects.find(object_name)
+ if (object = codebase.objects.find(object_name))
object
else
codebase.objects.starting_with(object_name)
end
end.flatten