Skip to content

Commit

Permalink
rename and widen the return value (#964)
Browse files Browse the repository at this point in the history
  • Loading branch information
bolsinga authored Oct 11, 2024
1 parent 33c52e9 commit 6547dbd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Sources/Site/Music/UI/ArchiveStateView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ struct ArchiveStateView: View {
#endif
return model.vault.categoryURLMap[category]
}
) { model.vault.pathUserActivity(for: $0) }
) { model.vault.restorableSharableLinkable(for: $0) }
}
}

Expand Down
4 changes: 3 additions & 1 deletion Sources/Site/Music/Vault+ArchivePath.swift
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@
import Foundation

extension Vault {
func pathUserActivity(for path: ArchivePath) -> PathRestorableUserActivity? {
func restorableSharableLinkable(for path: ArchivePath) -> (
PathRestorableUserActivity & ArchiveSharable
)? {
switch path {
case .show(let iD):
return concertMap[iD]
Expand Down

0 comments on commit 6547dbd

Please sign in to comment.