Commit 5e05c233 authored by Dmytro Zaporozhets's avatar Dmytro Zaporozhets

Merge branch '10io-remove-not-so-useful-empty' into 'master'

Remove a useless #exists? in NPM PackagePresenter

See merge request gitlab-org/gitlab!27510
parents 5f54aa75 92f36e2c
......@@ -60,8 +60,6 @@ module Packages
end
def build_package_dependencies(package)
return {} if package.dependency_links.empty?
dependencies = Hash.new { |h, key| h[key] = {} }
dependency_links = package.dependency_links
.with_dependency_type(NPM_VALID_DEPENDENCY_TYPES)
......
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