Skip to content

Commit

Permalink
Fixed calling `itemIdentifierDirectoryURLForItem(withPersistentIdenti…
Browse files Browse the repository at this point in the history
…fier:)` twice inside `urlForItem(withPersistentIdentifier:itemName)`

Unit tests failed because of the call count
(one example why you probably should never push directly to the main branch)
  • Loading branch information
phil1995 committed Mar 4, 2022
1 parent 6dc7357 commit 8512085
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CryptomatorFileProvider/LocalURLProviderType.swift
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public extension LocalURLProviderType {
if identifier == .rootContainer {
return itemIdentifierDirectory
}
return itemIdentifierDirectoryURLForItem(withPersistentIdentifier: identifier)?.appendingPathComponent(itemName, isDirectory: false)
return itemIdentifierDirectory?.appendingPathComponent(itemName, isDirectory: false)
}

/**
Expand Down

0 comments on commit 8512085

Please sign in to comment.