Skip to content

Commit 0e15050

Browse files
committed
[API] Generator: Fixes calling Utils
1 parent 7662d27 commit 0e15050

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

elasticsearch-api/utils/thor/generate_source.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ def __http_path
200200
def __parse_path(path)
201201
path.gsub(/^\//, '')
202202
.gsub(/\/$/, '')
203-
.gsub('{', "\#{Utils.__listify(_")
203+
.gsub('{', "\#{#{__utils}.__listify(_")
204204
.gsub('}', ')}')
205205
end
206206

@@ -296,7 +296,7 @@ def print_tree
296296
end
297297

298298
def __utils
299-
(@current_api == :xpack) ? 'Elasticsearch::API::Utils' : 'Utils'
299+
@current_api == :xpack ? 'Elasticsearch::API::Utils' : 'Utils'
300300
end
301301

302302
def run_rubocop(api)

0 commit comments

Comments
 (0)