Skip to content

Commit 11e457b

Browse files
author
Daniel Mikusa
authored
Fixes some Rubocop complaints (#913)
Signed-off-by: Daniel Mikusa <[email protected]>
1 parent 8b16938 commit 11e457b

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

rakelib/versions_task.rb

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -331,8 +331,9 @@ def version_task
331331

332332
rows = v['dependencies']
333333
.sort_by { |dependency| dependency['name'].downcase }
334-
.map { |dependency| [dependency['name'], dependency['version'],
335-
dependency['cve_link'], dependency['release_notes_link']] }
334+
.map do |dependency|
335+
[dependency['name'], dependency['version'], dependency['cve_link'], dependency['release_notes_link']]
336+
end
336337

337338
puts Terminal::Table.new title: "Java Buildpack #{v['buildpack']}", rows: rows
338339
end
@@ -354,8 +355,10 @@ def version_markdown_task
354355

355356
versions['dependencies']
356357
.sort_by { |dependency| dependency['name'].downcase }
357-
.each { |dependency| puts "| #{dependency['name']} | `#{dependency['version']}` |" \
358-
"#{dependency['cve_link']} | #{dependency['release_notes_link']} |" }
358+
.each do |dependency|
359+
puts "| #{dependency['name']} | `#{dependency['version']}` |" \
360+
"#{dependency['cve_link']} | #{dependency['release_notes_link']} |"
361+
end
359362
end
360363
end
361364

0 commit comments

Comments
 (0)