Skip to content

Commit 646ede7

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

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

lib/Ziti.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -472,7 +472,7 @@ import CZitiPrivate
472472
log.debug("configuring ziti-sdk-c with:\n" +
473473
" id: \(id.id)\n" +
474474
" ztAPIs: \(id.ztAPIs ?? [])\n" +
475-
" cert: \(certPEM)\n" +
475+
" cert: \(certPEM ?? "")\n" +
476476
" ca: \(id.ca ?? "none")")
477477

478478
var zitiStatus = ziti_context_init(&self.ztx, &zitiCfg)

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

lib/ZitiIdentity.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ import Foundation
3737
/// Common names for the certificates in this identities certificate chain.
3838
/// This is only set when the identity is decoded from an older representation. When `certs` is not set, this value can be used to
3939
/// retrieve the identity's certificates from the Keychain.
40-
@available(*, deprecated, message: "store certificates in `certs` instead")
40+
//@available(*, deprecated, message: "store certificates in `certs` instead")
4141
@objc private var certCNs:[String]?
4242

4343
/// scheme, host, and port used to communicate with Ziti controller

0 commit comments

Comments
 (0)