Skip to content

Commit

Permalink
rubocop
Browse files Browse the repository at this point in the history
  • Loading branch information
orangewolf authored and tamsin woo committed Apr 23, 2024
1 parent 67ab542 commit 42eccf4
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions lib/wings/active_fedora_converter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -156,10 +156,9 @@ def parse_attributes(af_object)
af_object.try(:members)&.replace(members)
end

if converted_attrs.keys.include?(:files)
files = converted_attrs.delete(:files)
af_object.files.build_or_set(files) if files
end
return unless converted_attrs.keys.include?(:files)
files = converted_attrs.delete(:files)
af_object.files.build_or_set(files) if files
end

def create_extrated_text(af_object)
Expand Down

0 comments on commit 42eccf4

Please sign in to comment.