Skip to content

Commit d572282

Browse files
cod
Signed-off-by: Marino Faggiana <marino.faggiana@nextcloud.com>
1 parent 150b745 commit d572282

2 files changed

Lines changed: 3 additions & 5 deletions

File tree

Sources/NextcloudKit/NextcloudKit+FilesLock.swift

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -93,13 +93,11 @@ public extension NextcloudKit {
9393
lockUnlockFile(serverUrlFileName: serverUrlFileName, type: type, shouldLock: shouldLock, account: account, options: options, taskHandler: taskHandler) { _, responseData, error in
9494
switch error {
9595
case .success:
96-
var lock: NKLock?
97-
98-
if let data = responseData?.data, let lock = NKLock(data: data) {
96+
if let data = responseData?.data,
97+
let lock = NKLock(data: data) {
9998
continuation.resume(returning: lock)
10099
return
101100
}
102-
103101
continuation.resume(returning: nil)
104102
default:
105103
continuation.resume(throwing: error)

Sources/NextcloudKit/NextcloudKit+Share.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -381,7 +381,7 @@ public extension NextcloudKit {
381381
/// - share: An optional `NKShare` object representing the created share.
382382
/// - responseData: The raw `AFDataResponse<Data>` returned by Alamofire.
383383
/// - error: An `NKError` representing the result of the operation.
384-
public func createShareAsync(
384+
func createShareAsync(
385385
path: String,
386386
shareType: Int,
387387
shareWith: String?,

0 commit comments

Comments
 (0)