File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -954,7 +954,7 @@ default:
954
954
for now i just suppressed the warnings
955
955
*/
956
956
MqttClient . prototype . _handlePublish = function ( packet , done ) {
957
- done = typeof done !== 'undefined' ? done : function ( ) { }
957
+ done = typeof done !== 'undefined' ? done : nop
958
958
var topic = packet . topic . toString ( )
959
959
var message = packet . payload
960
960
var qos = packet . qos
@@ -1078,7 +1078,7 @@ MqttClient.prototype._handleAck = function (packet) {
1078
1078
* @api private
1079
1079
*/
1080
1080
MqttClient . prototype . _handlePubrel = function ( packet , callback ) {
1081
- callback = typeof callback !== 'undefined' ? callback : function ( ) { }
1081
+ callback = typeof callback !== 'undefined' ? callback : nop
1082
1082
var mid = packet . messageId
1083
1083
var that = this
1084
1084
You can’t perform that action at this time.
0 commit comments