Browse Source

fix(dialyzer/emqx_sn): Fix unmatched return value warning

Zaiming Shi 5 years ago
parent
commit
8d853a3445
1 changed files with 1 additions and 1 deletions
  1. 1 1
      apps/emqx_sn/src/emqx_sn_gateway.erl

+ 1 - 1
apps/emqx_sn/src/emqx_sn_gateway.erl

@@ -947,7 +947,7 @@ do_publish_will(#state{will_msg = WillMsg, clientid = ClientId}) ->
                                                           qos = QoS, retain = Retain},
                            variable = #mqtt_packet_publish{topic_name = Topic, packet_id = 1000},
                            payload  = Payload},
-    emqx_broker:publish(emqx_packet:to_message(Publish, ClientId)),
+    _ = emqx_broker:publish(emqx_packet:to_message(Publish, ClientId)),
     ok.
 
 do_puback(TopicId, MsgId, ReturnCode, _StateName,