Commit fc91a09e authored by Tetiana Chupryna's avatar Tetiana Chupryna Committed by Stan Hu

Use next instead of return

parent a139d7db
...@@ -21,7 +21,7 @@ module Gitlab ...@@ -21,7 +21,7 @@ module Gitlab
report_data.fetch('dependency_files', []).each do |file| report_data.fetch('dependency_files', []).each do |file|
dependencies = file['dependencies'] dependencies = file['dependencies']
return unless dependencies.is_a?(Array) next unless dependencies.is_a?(Array)
dependencies.each do |dependency| dependencies.each do |dependency|
report.add_dependency(formatter.format(dependency, file['package_manager'], file['path'])) report.add_dependency(formatter.format(dependency, file['package_manager'], file['path']))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment