Skip to content

Commit 8707850

Browse files
committed
[API] Generator: Fix bug with unnecessary new line
1 parent 5fe6bd1 commit 8707850

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

elasticsearch-api/utils/thor/generate_source.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ def docs_helper(name, info)
222222
info['type'] = 'String' if info['type'] == 'enum' # Rename 'enums' to 'strings'
223223
tipo = info['type'] ? info['type'].capitalize : 'String'
224224
description = info['description'] ? info['description'].strip : '[TODO]'
225-
options = info['options'] ? "\n # (options: #{info['options'].join(', '.strip)})\n" : ''
225+
options = info['options'] ? "\n # (options: #{info['options'].join(', '.strip)})" : nil
226226
required = info['required'] ? ' (*Required*)' : ''
227227
deprecated = info['deprecated'] ? ' *Deprecated*' : ''
228228
"# @option arguments [#{tipo}] :#{name} #{description} #{required} #{deprecated} #{options}\n"

0 commit comments

Comments
 (0)