sul-dlss / purl-fetcher

An HTTP API for querying and updating PURLs
0 stars 1 forks source link

Move JSON deserialization to the PublicJson class #816

Closed jcoyne closed 2 weeks ago

jcoyne commented 2 weeks ago

Remove unnecessary nil checks. We do not have any nil JSON anymore:

Purl.where(public_json: nil).count
 => 0

PublicJson.where(data: nil).count
 => 0