Skip to content

Commit

Permalink
Improve code style
Browse files Browse the repository at this point in the history
  • Loading branch information
digilist committed Mar 17, 2022
1 parent 305e3fc commit 40be0ff
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/licensed/sources/composer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,7 @@ def enumerate_dependencies

def packages
packages = JSON.parse(File.read(composer_lock))
if not include_dev?
return packages["packages"]
end
return packages["packages"] unless include_dev?

packages["packages"] + packages["packages-dev"]
end
Expand Down

0 comments on commit 40be0ff

Please sign in to comment.