class Dependabot::Uv::Version
def pad_for_comparison(tokens, other_tokens)
def pad_for_comparison(tokens, other_tokens) tokens = tokens.dup other_tokens = other_tokens.dup longer = [tokens, other_tokens].max_by(&:count) shorter = [tokens, other_tokens].min_by(&:count) difference = T.must(longer).length - T.must(shorter).length difference.times { T.must(shorter) << 0 } [tokens, other_tokens] end