Skip to content

Commit

Permalink
appeases rubocop
Browse files Browse the repository at this point in the history
  • Loading branch information
bwatson78 authored Apr 10, 2024
1 parent 77407e0 commit e021d1a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/services/hyrax/edit_permissions_service.rb
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class EditPermissionsService
# * form_object.object.model = FileSet
# * use work the file_set is in
# No other object types are supported by this view.
def self.build_service_object_from(form:, ability:)
def self.build_service_object_from(form:, ability:) # rubocop:disable Metrics/AbcSize
if form.object.respond_to?(:model) && form.object.model.work?
# The provided form object is a work form.
new(object: form.object, ability: ability)
Expand All @@ -51,7 +51,7 @@ def self.build_service_object_from(form:, ability:)
# The provided form object is a FileSet.
new(object: form.object.in_works.first, ability: ability)
end
end
end # rubocop:enable Metrics/AbcSize

attr_reader :depositor, :unauthorized_collection_managers

Expand Down

0 comments on commit e021d1a

Please sign in to comment.