mirror of
https://github.com/mastodon/mastodon.git
synced 2024-11-20 03:25:17 +01:00
Remove unused merge_context
helper (#31703)
This commit is contained in:
parent
3efe98aa95
commit
2a244e2fdb
@ -200,14 +200,6 @@ module JsonLdHelper
|
|||||||
nil
|
nil
|
||||||
end
|
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)
|
def response_successful?(response)
|
||||||
(200...300).cover?(response.code)
|
(200...300).cover?(response.code)
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user