Skip to content

Commit

Permalink
lint fix
Browse files Browse the repository at this point in the history
  • Loading branch information
xiazhvera committed May 20, 2024
1 parent ccafa25 commit 8867080
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 15 deletions.
6 changes: 1 addition & 5 deletions Source/AwsCommonRuntimeKit/mqtt/Mqtt5Client.swift
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,6 @@ public class Mqtt5Client {
return try await clientCore.publish(publishPacket: publishPacket)
}


/// Tells the client to attempt to unsubscribe to one or more topic filters.
///
/// - Parameters:
Expand All @@ -203,7 +202,7 @@ public class Mqtt5Client {
clientCore.close()
}

deinit{
deinit {
clientCore.close()
}

Expand Down Expand Up @@ -426,9 +425,6 @@ public class Mqtt5ClientCore {

}




/// Handles lifecycle events from native Mqtt Client
internal func MqttClientHandleLifecycleEvent(_ lifecycleEvent: UnsafePointer<aws_mqtt5_client_lifecycle_event>?) {

Expand Down
10 changes: 0 additions & 10 deletions Test/AwsCommonRuntimeKitTests/mqtt/Mqtt5ClientTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,6 @@ class Mqtt5ClientTests: XCBaseTestCase {
onLifecycleEventConnectionFailure: OnLifecycleEventConnectionFailure? = nil,
onLifecycleEventDisconnection: OnLifecycleEventDisconnection? = nil) {


self.contextName = contextName

self.publishTarget = publishTarget
Expand Down Expand Up @@ -1042,7 +1041,6 @@ class Mqtt5ClientTests: XCBaseTestCase {
connectOptions: connectOptions)

let _ = try Mqtt5Client(clientOptions: clientOptions)

XCTFail("Negative keepAliveInterval didn't throw an error.")
return
}
Expand All @@ -1056,7 +1054,6 @@ class Mqtt5ClientTests: XCBaseTestCase {
port: UInt32(8883),
connectOptions: connectOptions)
let _ = try Mqtt5Client(clientOptions: clientOptions)

XCTFail("Negative sessionExpiryInterval didn't throw an error.")
return
} catch {
Expand All @@ -1069,7 +1066,6 @@ class Mqtt5ClientTests: XCBaseTestCase {
port: UInt32(8883),
connectOptions: connectOptions)
let _ = try Mqtt5Client(clientOptions: clientOptions)

XCTFail("Negative willDelayInterval didn't throw an error.")
return
} catch {
Expand All @@ -1081,7 +1077,6 @@ class Mqtt5ClientTests: XCBaseTestCase {
port: UInt32(8883),
minReconnectDelay: -1)
let _ = try Mqtt5Client(clientOptions: clientOptions)

XCTFail("Negative minReconnectDelay didn't throw an error.")
return
} catch {
Expand All @@ -1093,7 +1088,6 @@ class Mqtt5ClientTests: XCBaseTestCase {
port: UInt32(8883),
maxReconnectDelay: -1)
let _ = try Mqtt5Client(clientOptions: clientOptions)

XCTFail("Negative maxReconnectDelay didn't throw an error.")
return
} catch {
Expand All @@ -1105,7 +1099,6 @@ class Mqtt5ClientTests: XCBaseTestCase {
port: UInt32(8883),
minConnectedTimeToResetReconnectDelay: -1)
let _ = try Mqtt5Client(clientOptions: clientOptions)

XCTFail("Negative minConnectedTimeToResetReconnectDelay didn't throw an error.")
return
} catch {
Expand All @@ -1117,7 +1110,6 @@ class Mqtt5ClientTests: XCBaseTestCase {
port: UInt32(8883),
pingTimeout: -1)
let _ = try Mqtt5Client(clientOptions: clientOptions)

XCTFail("Negative pingTimeout didn't throw an error.")
return
} catch {
Expand All @@ -1129,7 +1121,6 @@ class Mqtt5ClientTests: XCBaseTestCase {
port: UInt32(8883),
connackTimeout: -1)
let _ = try Mqtt5Client(clientOptions: clientOptions)

XCTFail("Negative connackTimeout didn't throw an error.")
return
} catch {
Expand All @@ -1141,7 +1132,6 @@ class Mqtt5ClientTests: XCBaseTestCase {
port: UInt32(8883),
ackTimeout: -1)
let _ = try Mqtt5Client(clientOptions: clientOptions)

XCTFail("Negative ackTimeout didn't throw an error.")
return
} catch {
Expand Down

0 comments on commit 8867080

Please sign in to comment.