Commit 92f36e2c authored by David Fernandez's avatar David Fernandez

Avoid using `#exists?` when you don't need it

parent bc23c3cc
......@@ -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