Skip to content

Commit f7323c8

Browse files
committed
Fix broken macOS build caused by uploadChunk changes
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
1 parent 33b8c01 commit f7323c8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Sources/NextcloudKit/NextcloudKit+Upload.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ public extension NextcloudKit {
138138
do {
139139
fsAttributes = try FileManager.default.attributesOfFileSystem(forPath: "/")
140140
} catch {
141-
return completion(account, nil, nil, nil, NKError(errorCode: NKError.chunkNoEnoughMemory))
141+
return completion(account, nil, nil, .errorChunkNoEnoughMemory)
142142
}
143143
let freeDisk = ((fsAttributes[FileAttributeKey.systemFreeSize] ?? 0) as? Int64) ?? 0
144144
#elseif os(visionOS) || os(iOS)

0 commit comments

Comments
 (0)