Skip to content

Commit

Permalink
fix linter warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
jmarolf authored and jurre committed Jun 20, 2023
1 parent 074710c commit 6597d50
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion nuget/lib/dependabot/nuget/file_fetcher.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

require "dependabot/file_fetchers"
require "dependabot/file_fetchers/base"
require 'set'
require "set"

module Dependabot
module Nuget
Expand Down Expand Up @@ -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
Expand All @@ -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? }
Expand Down

0 comments on commit 6597d50

Please sign in to comment.