Skip to content

Commit 6c60058

Browse files
committed
Cleanup
1 parent 85bdb86 commit 6c60058

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

Cryptomator/VaultDetail/VaultDetailViewModel.swift

+1-6
Original file line numberDiff line numberDiff line change
@@ -86,18 +86,13 @@ class VaultDetailViewModel: VaultDetailViewModelProtocol {
8686

8787
private lazy var sections: [VaultDetailSection] = {
8888
var sections: [VaultDetailSection] = [.vaultInfoSection, .lockingSection]
89-
9089
if vaultIsEligibleToMove() {
9190
sections.append(.moveVaultSection)
9291
}
93-
94-
if vaultInfo.vaultConfigType != .hub {
92+
if vaultInfo.vaultConfigType == .masterkeyFile {
9593
sections.append(.changeVaultPasswordSection)
9694
}
97-
98-
// Ensure removeVaultSection is always the last element
9995
sections.append(.removeVaultSection)
100-
10196
return sections
10297
}()
10398

0 commit comments

Comments
 (0)