diff --git a/app/factories/bulkrax/object_factory_interface.rb b/app/factories/bulkrax/object_factory_interface.rb index e3845c3b..723bf75b 100644 --- a/app/factories/bulkrax/object_factory_interface.rb +++ b/app/factories/bulkrax/object_factory_interface.rb @@ -319,9 +319,9 @@ def delete(_user) # # @return [Object] when we've found the object by the entry's :id or by it's # source_identifier - # @return [FalseClass] when we cannot find the object. + # @return [NilClass] when we cannot find the object. def find - find_by_id || search_by_identifier || false + find_by_id || search_by_identifier || nil end ##