mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2026-11-30 09:18:18 +00:00
Simplified the if/else logic in the getter
This commit is contained in:
1 parent
6ddf0f29fb
commit
e7a04804b4
1 file changed
+1
-5
@@ -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