Skip to content

Commit

Permalink
remove search_data_js format error logs when there is no search_data_js
Browse files Browse the repository at this point in the history
  • Loading branch information
ruslandoga committed Nov 10, 2024
1 parent 2d9c89e commit 5d9f67d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/hexdocs/search/search.ex
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,12 @@ defmodule Hexdocs.Search do
"searchData=" <> json ->
json

_ ->
_ when is_binary(search_data_js) ->
Logger.error("Unexpected search_data format for #{package} #{version}")
nil

nil ->
nil
end

search_data =
Expand Down

0 comments on commit 5d9f67d

Please sign in to comment.