Simplified the if/else logic in the getter

This commit is contained in:
Maurice Parker 2020-07-01 03:46:00 -05:00
parent 6ddf0f29fb
commit e7a04804b4
1 changed files with 1 additions and 5 deletions

View File

@ -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 {