Skip to content

Commit a4d7980

Browse files
committed
[API] Generator: Fix bug with unnecessary new line
1 parent 8edd25b commit a4d7980

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
@@ -229,7 +229,7 @@ def docs_helper(name, info)
229229
info['type'] = 'String' if info['type'] == 'enum' # Rename 'enums' to 'strings'
230230
tipo = info['type'] ? info['type'].capitalize : 'String'
231231
description = info['description'] ? info['description'].strip : '[TODO]'
232-
options = info['options'] ? "\n # (options: #{info['options'].join(', '.strip)})\n" : ''
232+
options = info['options'] ? "\n # (options: #{info['options'].join(', '.strip)})" : nil
233233
required = info['required'] ? ' (*Required*)' : ''
234234
deprecated = info['deprecated'] ? ' *Deprecated*' : ''
235235
"# @option arguments [#{tipo}] :#{name} #{description} #{required} #{deprecated} #{options}\n"

0 commit comments

Comments
 (0)