mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2025-08-12 06:26:36 +00:00
Make the return type of CountedSet's subscript non-optional
This commit is contained in:
@@ -300,9 +300,9 @@ private struct CountedSet<Element> where Element: Hashable {
|
||||
return _storage[element] != nil
|
||||
}
|
||||
|
||||
subscript(key: Element) -> Int? {
|
||||
subscript(key: Element) -> Int {
|
||||
get {
|
||||
return _storage[key]
|
||||
return _storage[key, default: 0]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user