change default response for empty popularsearchservice response

This commit is contained in:
r888888888
2018-11-05 21:35:57 -08:00
parent 00f36605c4
commit 8da51b4555

View File

@@ -33,7 +33,7 @@ class PopularSearchService
if response.success? if response.success?
response = response.body response = response.body
else else
response = "" response = "[]"
end end
response response
end.to_s.force_encoding("utf-8") end.to_s.force_encoding("utf-8")
@@ -47,7 +47,7 @@ class PopularSearchService
if response.success? if response.success?
response = response.body response = response.body
else else
response = "" response = "[]"
end end
response response
end.to_s.force_encoding("utf-8") end.to_s.force_encoding("utf-8")