Skip to content

Commit

Permalink
Fix file backend for uninitialized indexes
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelmior committed Sep 2, 2016
1 parent d56293d commit 0fe3cab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/nose/backend/file.rb
Expand Up @@ -114,7 +114,7 @@ def process(conditions, results)
condition_list = result_conditions conditions, results

# Loop through all rows to find the matching ones
rows = @client[@index.key]
rows = @client[@index.key] || []
selected = condition_list.flat_map do |condition|
rows.select { |row| row_matches? row, condition }
end.compact
Expand Down

0 comments on commit 0fe3cab

Please sign in to comment.