Skip to content

Commit

Permalink
remove overloaded var
Browse files Browse the repository at this point in the history
  • Loading branch information
judocode committed Jan 23, 2025
1 parent a7fe020 commit 849f618
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions updater/lib/dependabot/dependency_snapshot.rb
Original file line number Diff line number Diff line change
Expand Up @@ -137,10 +137,10 @@ def mark_group_handled(group)
sig { params(dependency_names: T.any(String, T::Array[String])).void }
def add_handled_dependencies(dependency_names)
assert_current_directory_set!
dependencies = Array(dependency_names)
Dependabot.logger.info("Adding dependencies as handled: (#{dependencies.join(', ')}).")
names = Array(dependency_names)
Dependabot.logger.info("Adding dependencies as handled: (#{names.join(', ')}).")
@handled_dependencies[@current_directory] ||= Set.new
@handled_dependencies[@current_directory]&.merge(dependencies)
@handled_dependencies[@current_directory]&.merge(names)
end

sig { returns(T::Set[String]) }
Expand Down

0 comments on commit 849f618

Please sign in to comment.