Skip to content

Commit

Permalink
Handle empty method list
Browse files Browse the repository at this point in the history
  • Loading branch information
tkf committed Aug 12, 2018
1 parent 8eb50a7 commit a89f1a2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/InteractiveCodeSearch.jl
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,10 @@ end
run_matcher(input) = String(read_stdout(CONFIG.interactive_matcher, input))

function choose_method(methods)
if isempty(methods)
@info "No (interesting) method found"
return
end
if CONFIG.auto_open && length(methods) == 1
m = first(methods)
loc = (string(m.file), m.line)
Expand Down

0 comments on commit a89f1a2

Please sign in to comment.