diff options
| author | mo khan <mo.khan@gmail.com> | 2020-05-20 08:51:28 -0600 |
|---|---|---|
| committer | mo khan <mo.khan@gmail.com> | 2020-05-20 08:51:28 -0600 |
| commit | 5d2ab2259a6358909c207e40a0a6e6064692d76f (patch) | |
| tree | de7229efdefe4383279e2ef0baf67f4a45f230b7 /lib | |
| parent | fffc8a5e2d29b6bcaaf004b57636cfcf69ff8c7d (diff) | |
Skip rows that cannot be parsed
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/spandx/core/index_file.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/spandx/core/index_file.rb b/lib/spandx/core/index_file.rb index bf5f886..c18f4bb 100644 --- a/lib/spandx/core/index_file.rb +++ b/lib/spandx/core/index_file.rb @@ -26,6 +26,8 @@ module Spandx until min >= max mid = mid_for(min, max) row = reader.row(mid) + return unless row + comparison = yield row return row if comparison.zero? |
