Skip to content

Commit c92460e

Browse files
Copilotrobaiken
andcommitted
Fix remaining Sorbet errors with T.must() for nilable strings
Co-authored-by: robaiken <[email protected]>
1 parent 0b9ca8a commit c92460e

File tree

1 file changed

+2
-2
lines changed
  • docker/lib/dependabot/docker

1 file changed

+2
-2
lines changed

docker/lib/dependabot/docker/tag.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,8 @@ def looks_like_prerelease?
6666
]
6767

6868
# Check both the version part and the suffix part
69-
version_matches = version && prerelease_patterns.any? { |pattern| version.match?(pattern) }
70-
suffix_matches = suffix && prerelease_patterns.any? { |pattern| suffix.match?(pattern) }
69+
version_matches = version && prerelease_patterns.any? { |pattern| T.must(version).match?(pattern) }
70+
suffix_matches = suffix && prerelease_patterns.any? { |pattern| T.must(suffix).match?(pattern) }
7171

7272
!!(version_matches || suffix_matches)
7373
end

0 commit comments

Comments
 (0)