diff options
author | Andrew Neitsch <aneitsch@cisco.com> | 2015-11-25 14:58:22 -0700 |
---|---|---|
committer | Andrew Neitsch <aneitsch@cisco.com> | 2015-11-25 14:59:39 -0700 |
commit | 06d3898d307168145130a3603a2121be6b4e19b3 (patch) | |
tree | fed5948447f1f7b0085563864b6c058ecd0ac2c9 /lib | |
parent | 8e51d333ada0eebd065bbbeca5c69260219d008e (diff) | |
download | chef-zero-06d3898d307168145130a3603a2121be6b4e19b3.tar.gz |
Fix attempted fall-through in case statement.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/chef_zero/solr/query/unary_operator.rb | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/chef_zero/solr/query/unary_operator.rb b/lib/chef_zero/solr/query/unary_operator.rb index fc46c0d..a873932 100644 --- a/lib/chef_zero/solr/query/unary_operator.rb +++ b/lib/chef_zero/solr/query/unary_operator.rb @@ -16,8 +16,7 @@ module ChefZero def matches_doc?(doc) case @operator - when '-' - when 'NOT' + when '-', 'NOT' !operand.matches_doc?(doc) when '+' # TODO This operator uses relevance to eliminate other, unrelated @@ -28,8 +27,7 @@ module ChefZero def matches_values?(values) case @operator - when '-' - when 'NOT' + when '-', 'NOT' !operand.matches_values?(values) when '+' # TODO This operator uses relevance to eliminate other, unrelated |