We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fe17ff0 commit 9cdd09cCopy full SHA for 9cdd09c
elasticsearch-api/utils/thor/generate_source.rb
@@ -154,12 +154,12 @@ def __http_path
154
return termvectors_path if @method_name == 'termvectors'
155
156
result = ''
157
- anchor_string = ''
+ anchor_string = []
158
@paths.sort { |a, b| b.length <=> a.length }.each_with_index do |path, i|
159
var_string = __extract_path_variables(path).map { |var| "_#{var}" }.join(' && ')
160
- next if anchor_string == var_string
+ next if anchor_string.include? var_string
161
162
- anchor_string = var_string
+ anchor_string << var_string
163
result += if i.zero?
164
"if #{var_string}\n"
165
elsif (i == @paths.size - 1) || var_string.empty?
0 commit comments