diff --git a/nuget/lib/dependabot/nuget/file_parser.rb b/nuget/lib/dependabot/nuget/file_parser.rb index a13b0a00504..69cc68970c9 100644 --- a/nuget/lib/dependabot/nuget/file_parser.rb +++ b/nuget/lib/dependabot/nuget/file_parser.rb @@ -21,6 +21,7 @@ class FileParser < Dependabot::FileParsers::Base def parse workspace_path = project_files.first&.directory return [] unless workspace_path + return [] unless repo_contents_path # `workspace_path` is the only unique value here so we use it as the cache key cache = T.let(CacheManager.cache("file_parser.parse"), T::Hash[String, T::Array[Dependabot::Dependency]])