summaryrefslogtreecommitdiff
path: root/lib/license/finder/ext
diff options
context:
space:
mode:
authormo khan <mo.khan@gmail.com>2020-07-11 17:14:56 -0600
committermo khan <mo.khan@gmail.com>2020-07-11 17:14:56 -0600
commitd8b18764499ed0378d5f5caf0d68460c39510cfe (patch)
treec0a9e8021e38e702a0b02d99993e639f86498ea1 /lib/license/finder/ext
parenta48b0c8fdfae4ff0447f7a232fe3c39bca7ec8a9 (diff)
Return empty list when bundler scan failsv3.17.2
Diffstat (limited to 'lib/license/finder/ext')
-rw-r--r--lib/license/finder/ext/bundler.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/license/finder/ext/bundler.rb b/lib/license/finder/ext/bundler.rb
index a5fe21d..a40a698 100644
--- a/lib/license/finder/ext/bundler.rb
+++ b/lib/license/finder/ext/bundler.rb
@@ -17,7 +17,7 @@ module LicenseFinder
def current_packages
with_clean_bundler do
stdout, _stderr, status = shell.execute(scan_command, env: default_env)
- return super unless status.success?
+ return [] unless status.success?
stdout.each_line.map do |line|
map_from(JSON.parse(line, symbolize_names: true))