Skip to content

Commit

Permalink
Syntax fix
Browse files Browse the repository at this point in the history
  • Loading branch information
codycooperross committed Dec 6, 2023
1 parent f32ad51 commit acde070
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/serializers/datacite_doi_serializer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ class DataciteDoiSerializer
# new obj format only if ?publisher=true, otherwise serialize the old format (a string)
publisher = object.try(:publisher_obj) || object.try(:publisher)

return nil if publisher.nil?
nil if publisher.nil?

if params&.dig(:publisher) == "true"
publisher = publisher.respond_to?(:to_hash) ? publisher : { "name" => publisher }
Expand Down

0 comments on commit acde070

Please sign in to comment.