Commit 0a284b4

mo khan <mo.khan@gmail.com>
2020-04-19 01:19:06
Remove dead_letter path and insert unknown entries
1 parent 2bec616
Changed files (1)
lib
spandx
dotnet
lib/spandx/dotnet/index.rb
@@ -75,7 +75,7 @@ module Spandx
       end
 
       def insert(name, version, license)
-        path = license ? data_file_for(name) : dead_letter_path
+        path = data_file_for(name)
         FileUtils.mkdir_p(File.dirname(path))
         IO.write(
           path,
@@ -88,10 +88,6 @@ module Spandx
         checkpoints.keys.map(&:to_i)
       end
 
-      def dead_letter_path
-        @dead_letter_path ||= File.join(directory, 'nuget.unknown')
-      end
-
       def insert_latest(gateway)
         current_page = completed_pages.max || 0
         gateway.each(start_page: current_page) do |spec, page|