Skip to content

Commit

Permalink
try remove ts-ignore
Browse files Browse the repository at this point in the history
  • Loading branch information
xiazhvera committed Aug 21, 2024
1 parent 659e5ac commit 06e6775
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/browser/mqtt5.ts
Original file line number Diff line number Diff line change
Expand Up @@ -446,7 +446,6 @@ export class Mqtt5Client extends BufferedEventEmitter implements mqtt5.IMqtt5Cli
let subMap: mqtt.ISubscriptionMap = mqtt_utils.transform_crt_subscribe_to_mqtt_js_subscription_map(packet);
let subOptions: mqtt.IClientSubscribeOptions = mqtt_utils.transform_crt_subscribe_to_mqtt_js_subscribe_options(packet);

// @ts-ignore
this.browserClient.subscribe(subMap, subOptions, (error, grants, suback) => {
if (error) {
reject(error);
Expand Down Expand Up @@ -492,7 +491,6 @@ export class Mqtt5Client extends BufferedEventEmitter implements mqtt5.IMqtt5Cli
let unsubOptions: Object = mqtt_utils.transform_crt_unsubscribe_to_mqtt_js_unsubscribe_options(packet);

// TODO: fix if PR accepted
// @ts-ignore
this.browserClient.unsubscribe(topicFilters, unsubOptions, (error, packet) => {
if (error) {
reject(error);
Expand Down Expand Up @@ -897,4 +895,4 @@ export class Mqtt5Client extends BufferedEventEmitter implements mqtt5.IMqtt5Cli
this.emit(Mqtt5Client.MESSAGE_RECEIVED, messageReceivedEvent);
}, 0);
}
}
}

0 comments on commit 06e6775

Please sign in to comment.