Skip to content

Commit 9d22ef1

Browse files
committed
Remove some redundancy
1 parent 0527344 commit 9d22ef1

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

Diff for: src/MqttClient.cpp

+1-4
Original file line numberDiff line numberDiff line change
@@ -99,15 +99,12 @@ MqttClient::~MqttClient()
9999

100100
#ifdef MQTT_CLIENT_STD_FUNCTION_CALLBACK
101101
void MqttClient::onMessage(MqttMessageCallback callback)
102-
{
103-
_onMessage = callback;
104-
}
105102
#else
106103
void MqttClient::onMessage(void(*callback)(int))
104+
#endif
107105
{
108106
_onMessage = callback;
109107
}
110-
#endif
111108

112109
int MqttClient::parseMessage()
113110
{

0 commit comments

Comments
 (0)