Skip to content

Commit d66b088

Browse files
committed
clean up swift warnings
1 parent 5050f87 commit d66b088

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/ZitiEnroller.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ import CZitiPrivate
188188
cb(nil, nil, zErr)
189189
return
190190
}
191-
let (data, response, error) = URLSession.shared.syncRequest(with: ctrlUrl)
191+
let (_, _, error) = URLSession.shared.syncRequest(with: ctrlUrl)
192192
if let error = error {
193193
let zErr = ZitiError("connection to \(url) failed: \(error.localizedDescription)")
194194
log.error(String(describing: zErr), function:"enroll()")

lib/ZitiError.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ limitations under the License.
1616
import Foundation
1717

1818
/// Class used for passing information about error conditions encountered while using Ziti
19-
public class ZitiError : NSError {
19+
public class ZitiError : NSError, @unchecked Sendable {
2020
/// Initialize a ZitiError instance
2121
/// - Parameters:
2222
/// - desc: error description

0 commit comments

Comments
 (0)