summaryrefslogtreecommitdiff
path: root/lib/license
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
parenta48b0c8fdfae4ff0447f7a232fe3c39bca7ec8a9 (diff)
Return empty list when bundler scan failsv3.17.2
Diffstat (limited to 'lib/license')
-rw-r--r--lib/license/finder/ext/bundler.rb2
-rw-r--r--lib/license/management/version.rb2
2 files changed, 2 insertions, 2 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))
diff --git a/lib/license/management/version.rb b/lib/license/management/version.rb
index 880ca6c..76b9238 100644
--- a/lib/license/management/version.rb
+++ b/lib/license/management/version.rb
@@ -2,6 +2,6 @@
module License
module Management
- VERSION = '3.17.1'
+ VERSION = '3.17.2'
end
end