Skip to content

Commit

Permalink
fix sorbet types
Browse files Browse the repository at this point in the history
  • Loading branch information
Nishnha committed Jun 19, 2024
1 parent 0fe21ea commit 753c607
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions updater/lib/dependabot/dependency_snapshot.rb
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ def handled_dependencies

sig { returns(T::Set[String]) }
def handled_group_dependencies
T.must(@handled_dependencies.values&.flatten&.first)
T.must(@handled_dependencies.values.flatten.first)
end

sig { params(dir: String).void }
Expand All @@ -152,7 +152,7 @@ def ungrouped_dependencies
return allowed_dependencies unless groups.any?

if Dependabot::Experiments.enabled?(:directory_has_dependency)
return allowed_dependencies.reject { |dep| T.must(handled_group_dependencies).include?(dep.name) }
return allowed_dependencies.reject { |dep| handled_group_dependencies.include?(dep.name) }
end

# Otherwise return dependencies that haven't been handled during the group update portion.
Expand Down

0 comments on commit 753c607

Please sign in to comment.