lib/hrw/scanner/package_lock.rb in hrw-0.3.7 vs lib/hrw/scanner/package_lock.rb in hrw-0.3.8

- old
+ new

@@ -18,9 +18,11 @@ # @return [Hash] Dependencies def scan deps = [] obj = JSON.parse(File.read(File.join(@root, @lockfile))) + return deps unless obj.key?('dependencies') + obj['dependencies'].each_pair do |name, pkg| deps << { name: name, version: pkg['version'] } \ No newline at end of file