diff --git a/docker/lib/dependabot/docker/tag.rb b/docker/lib/dependabot/docker/tag.rb index 0d26e417214..3b3f07668b7 100644 --- a/docker/lib/dependabot/docker/tag.rb +++ b/docker/lib/dependabot/docker/tag.rb @@ -67,8 +67,7 @@ def comparable_to?(other) return equal_prefix && equal_format if other_format == :sha_suffixed equal_suffix = suffix == other_suffix - equal_prefix && equal_format && equal_suffix - comparable_format + (equal_prefix && equal_format && equal_suffix) || comparable_format end sig { returns(T::Boolean) }