Merge pull request #29833 from raboof/exhaustive-cachePolicy-comparison
Exhaustive comparison for cache policies
This commit is contained in:
commit
96548837c6
1 changed files with 2 additions and 0 deletions
|
|
@ -30,7 +30,9 @@ package object internal {
|
|||
case (Never, Never) => 0
|
||||
case (Ttl(v1), Ttl(v2)) => v1.compare(v2)
|
||||
case (Never, _) => -1
|
||||
case (_, Forever) => -1
|
||||
case (Forever, _) => 1
|
||||
case (_, Never) => 1
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue