Browse Source

Remove unused `merge_context` helper (#31703)

dariusk-working/4_3_0
Matt Jankowski 2 years ago committed by GitHub
parent
commit
2a244e2fdb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 8
      app/helpers/jsonld_helper.rb

8
app/helpers/jsonld_helper.rb

@ -200,14 +200,6 @@ module JsonLdHelper
nil
end
def merge_context(context, new_context)
if context.is_a?(Array)
context << new_context
else
[context, new_context]
end
end
def response_successful?(response)
(200...300).cover?(response.code)
end

Loading…
Cancel
Save