Skip to content

Commit

Permalink
Fix Rubocop error
Browse files Browse the repository at this point in the history
  • Loading branch information
LaRita Robinson committed Jun 19, 2019
1 parent f447c23 commit 8d3394f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/wings/valkyrie/query_service.rb
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,8 @@ def find_by_alternate_identifier(alternate_identifier:, use_valkyrie: true)
object = ::ActiveFedora::Base.find(alternate_identifier.to_s)
return object if use_valkyrie == false
resource_factory.to_resource(object: object)
rescue ::ActiveFedora::ObjectNotFoundError, Ldp::Gone => e
raise use_valkyrie == true ? ::Valkyrie::Persistence::ObjectNotFoundError : e
rescue ::ActiveFedora::ObjectNotFoundError, Ldp::Gone => e
raise use_valkyrie == true ? ::Valkyrie::Persistence::ObjectNotFoundError : e
end

# Find all members of a given resource, and map to Valkyrie Resources
Expand Down

0 comments on commit 8d3394f

Please sign in to comment.