Skip to content

Commit

Permalink
do not cache empty response
Browse files Browse the repository at this point in the history
  • Loading branch information
yujonglee committed Oct 30, 2024
1 parent 1380415 commit e571ca5
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion core/lib/canary/interface/search.ex
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,11 @@ defmodule Canary.Interface.Search do

_ ->
{:ok, result} = impl().run(project, query, opts)
set_cache(project, query, opts, result)

if result != [] do
set_cache(project, query, opts, result)
end

{:ok, result}
end
end
Expand Down

0 comments on commit e571ca5

Please sign in to comment.