Skip to content

Commit 5d9f67d

Browse files
committed
remove search_data_js format error logs when there is no search_data_js
1 parent 2d9c89e commit 5d9f67d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

lib/hexdocs/search/search.ex

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,12 @@ defmodule Hexdocs.Search do
4141
"searchData=" <> json ->
4242
json
4343

44-
_ ->
44+
_ when is_binary(search_data_js) ->
4545
Logger.error("Unexpected search_data format for #{package} #{version}")
4646
nil
47+
48+
nil ->
49+
nil
4750
end
4851

4952
search_data =

0 commit comments

Comments
 (0)