From 6597d5065dd95a80371b222003efb29300d6e343 Mon Sep 17 00:00:00 2001 From: Jonathon Marolf Date: Wed, 17 May 2023 11:40:08 -0700 Subject: [PATCH] fix linter warnings --- nuget/lib/dependabot/nuget/file_fetcher.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/nuget/lib/dependabot/nuget/file_fetcher.rb b/nuget/lib/dependabot/nuget/file_fetcher.rb index ba6460006e..bc5c6cbc8b 100644 --- a/nuget/lib/dependabot/nuget/file_fetcher.rb +++ b/nuget/lib/dependabot/nuget/file_fetcher.rb @@ -2,7 +2,7 @@ require "dependabot/file_fetchers" require "dependabot/file_fetchers/base" -require 'set' +require "set" module Dependabot module Nuget @@ -206,6 +206,7 @@ def fsproj_file def nuget_config_files return @nuget_config_files if @nuget_config_files + @nuget_config_files = [] candidate_paths = [*project_files.map { |f| File.dirname(f.name) }, "."].uniq visited_directories = Set.new @@ -218,6 +219,7 @@ def nuget_config_files def search_in_directory_and_parents(dir, visited_directories) loop do break if visited_directories.include?(dir) + visited_directories << dir file = repo_contents(dir: dir). find { |f| f.name.casecmp("nuget.config").zero? }