mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2025-08-12 06:26:36 +00:00
Simplified the if/else logic in the getter
This commit is contained in:
@@ -29,11 +29,7 @@ final class SidebarExpandedContainers: ObservableObject {
|
||||
|
||||
subscript(_ containerID: ContainerIdentifier) -> Bool {
|
||||
get {
|
||||
if expandedTable.contains(containerID) {
|
||||
return true
|
||||
} else {
|
||||
return false
|
||||
}
|
||||
return expandedTable.contains(containerID)
|
||||
}
|
||||
set(newValue) {
|
||||
if newValue {
|
||||
|
||||
Reference in New Issue
Block a user