summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authormo khan <mo.khan@gmail.com>2020-11-14 22:07:45 -0700
committermo khan <mo.khan@gmail.com>2020-11-14 22:07:45 -0700
commit8fe5034f3538c4c38e9338af4df5fcdfc1dd57e4 (patch)
tree18f68c5e20c6ffdaf2a6485a0e52bd9ce125c579 /lib
parent786b5402260a007df6785ca1a4083015f6f212cc (diff)
style: fix linter errors
Diffstat (limited to 'lib')
-rw-r--r--lib/spandx/os/parsers/dpkg.rb4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/spandx/os/parsers/dpkg.rb b/lib/spandx/os/parsers/dpkg.rb
index c2c4637..cb9237e 100644
--- a/lib/spandx/os/parsers/dpkg.rb
+++ b/lib/spandx/os/parsers/dpkg.rb
@@ -27,14 +27,12 @@ module Spandx
until io.eof?
line = io.readline.chomp
- next if line.start_with?(" ")
if line.empty?
yield package
-
package = {}
else
- line.split(':').tap { |(key, *value)| package[key] = value&.join(':')&.strip }
+ line.split(':').tap { |(key, *value)| package[key] = value&.join(':')&.strip } unless line.start_with?(' ')
end
end
end