Skip to content

Commit

Permalink
issue #5919 - cleaning up test code
Browse files Browse the repository at this point in the history
  • Loading branch information
GarryHurleyJr committed Apr 29, 2024
1 parent 3df7ef0 commit 0e246cd
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions composer/lib/dependabot/composer/file_parser.rb
Original file line number Diff line number Diff line change
Expand Up @@ -165,15 +165,14 @@ def git_dependency_details(package_details, requirement)
end

def lockfile_details(name:, type:)
p "name:#{name}\ntype:#{type}"
begin
key = lockfile_key(type)
rescue
key = nil
end

if key is nil
raise Dependabot::DependencyFileNotParseable
raise Dependabot::DependencyFileNotParseable
else
parsed_lockfile.fetch(key, []).find { |d| d["name"] == name }
end
Expand Down

0 comments on commit 0e246cd

Please sign in to comment.