lib/gitdocs/manager.rb in gitdocs-0.4.1 vs lib/gitdocs/manager.rb in gitdocs-0.4.2
- old
+ new
@@ -14,10 +14,11 @@
def search(term)
results = {}
@runners.each_with_index do |runner, index|
descriptor = RepoDescriptor.new(runner.root, index)
- results[descriptor] = runner.search(term)
+ repo_results = runner.search(term)
+ results[descriptor] = repo_results unless repo_results.empty?
end
results
end
def run
\ No newline at end of file