summaryrefslogtreecommitdiff
path: root/lib/chef_zero/solr/query/term.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/chef_zero/solr/query/term.rb')
-rw-r--r--lib/chef_zero/solr/query/term.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef_zero/solr/query/term.rb b/lib/chef_zero/solr/query/term.rb
index e106519..b98d281 100644
--- a/lib/chef_zero/solr/query/term.rb
+++ b/lib/chef_zero/solr/query/term.rb
@@ -23,7 +23,7 @@ module ChefZero
raise "~ unsupported"
else
if term[index] == '\\'
- index = index + 1
+ index += 1
if index >= term.length
raise "Backslash at end of string '#{term}'"
end