Skip to content

Commit 8512085

Browse files
committed
Fixed calling itemIdentifierDirectoryURLForItem(withPersistentIdentifier:) 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)
1 parent 6dc7357 commit 8512085

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CryptomatorFileProvider/LocalURLProviderType.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public extension LocalURLProviderType {
3434
if identifier == .rootContainer {
3535
return itemIdentifierDirectory
3636
}
37-
return itemIdentifierDirectoryURLForItem(withPersistentIdentifier: identifier)?.appendingPathComponent(itemName, isDirectory: false)
37+
return itemIdentifierDirectory?.appendingPathComponent(itemName, isDirectory: false)
3838
}
3939

4040
/**

0 commit comments

Comments
 (0)