Skip to content

Commit

Permalink
fixed sorbet check
Browse files Browse the repository at this point in the history
  • Loading branch information
kbukum1 committed Oct 24, 2024
1 parent d676efe commit 07231ed
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bundler/lib/dependabot/bundler/helpers.rb
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,9 @@ def self.ruby_version_from_definition(gemfile, lockfile)
gemfile_name = gemfile&.name
return nil unless gemfile_name

ruby_version = T.let(build_definition(gemfile, lockfile).ruby_version, ::Bundler::RubyVersion)
ruby_version = T.let(build_definition(gemfile, lockfile).ruby_version, T.nilable(::Bundler::RubyVersion))

gem_version = T.let(ruby_version.gem_version, T.nilable(Gem::Version))
gem_version = T.let(ruby_version&.gem_version, T.nilable(Gem::Version))

return nil unless gem_version

Expand Down

0 comments on commit 07231ed

Please sign in to comment.