From e7a04804b4ae7c86972afc7f015b5ea5ff850477 Mon Sep 17 00:00:00 2001 From: Maurice Parker Date: Wed, 1 Jul 2020 03:46:00 -0500 Subject: [PATCH] Simplified the if/else logic in the getter --- .../Shared/Sidebar/SidebarExpandedContainers.swift | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/Multiplatform/Shared/Sidebar/SidebarExpandedContainers.swift b/Multiplatform/Shared/Sidebar/SidebarExpandedContainers.swift index 190135cde..ebccb6034 100644 --- a/Multiplatform/Shared/Sidebar/SidebarExpandedContainers.swift +++ b/Multiplatform/Shared/Sidebar/SidebarExpandedContainers.swift @@ -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 {