Skip to content

Commit

Permalink
Fix CI build failure in MockRemoteItem
Browse files Browse the repository at this point in the history
Signed-off-by: Claudio Cambra <developer@claudiocambra.com>
  • Loading branch information
claucambra committed Dec 19, 2024
1 parent c0ca655 commit bbc2b4f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 2 additions & 3 deletions Tests/Interface/MockRemoteInterface.swift
Original file line number Diff line number Diff line change
Expand Up @@ -281,9 +281,8 @@ public class MockRemoteInterface: RemoteInterface {
sourceItem.trashbinOriginalLocation = nil
}

let matchingNameChildCount = destinationParent.children.count(
where: { $0.name == sourceItem.name }
)
let matchingNameChildCount =
destinationParent.children.filter({ $0.name == sourceItem.name }).count

if !overwrite && matchingNameChildCount > 0 {
sourceItem.name += " (\(matchingNameChildCount))"
Expand Down
2 changes: 1 addition & 1 deletion Tests/Interface/MockRemoteItem.swift
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ public class MockRemoteItem: Equatable {
)
metadata.date = modificationDate
metadata.creationDate = creationDate
metadata.size = data?.count as? Int64 ?? 0
metadata.size = size
metadata.urlBase = account.serverUrl
metadata.userId = account.id
metadata.user = account.username
Expand Down

0 comments on commit bbc2b4f

Please sign in to comment.