lib/mangrove/option.rb in mangrove-0.16.0 vs lib/mangrove/option.rb in mangrove-0.17.0

- old
+ new

@@ -52,12 +52,12 @@ case other when Option::Some other.instance_variable_get(:@inner) == @inner when Option::None false - else - # T.absurd(other) + else # rubocop:disable Lint/DuplicateBranch + # Because == is defined on BasicObject, we can't be sure that `other` is an Option false end end sig { returns(InnerType) } @@ -127,12 +127,12 @@ case other when Option::Some false when Option::None true - else + else # rubocop:disable Lint/DuplicateBranch + # Because == is defined on BasicObject, we can't be sure that `other` is an Option false - # T.absurd(other) end end sig { override.params(default: InnerType).returns(InnerType) } def unwrap_or(default)