lib/ezid/identifier.rb in ezid-client-1.4.0 vs lib/ezid/identifier.rb in ezid-client-1.4.1

- old
+ new

@@ -33,10 +33,10 @@ else id, metadata = args end if id.nil? warn "[DEPRECATION] Calling `create` without an id will raise an exception in 2.0. Use `mint` instead. (called from #{caller.first})" - shoulder = metadata.delete(:shoulder) + shoulder = metadata ? metadata.delete(:shoulder) : nil mint(shoulder, metadata) else new(id, metadata) { |i| i.save } end end