Skip to content

Commit 2b47534

Browse files
committed
Another test...
1 parent e4713f7 commit 2b47534

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/FirebaseArduino.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -179,9 +179,9 @@ FirebaseObject FirebaseArduino::readEvent() {
179179
String event = client->readStringUntil('\n').substring(6);
180180
client->readStringUntil('\n'); // consume separator
181181
FirebaseObject obj = FirebaseObject(event.c_str());
182-
if (type.length() > 0) {
183-
obj.getJsonVariant().as<JsonObject&>().set("type", type);
184-
}
182+
JsonObject& jsonObject = obj.getJsonVariant().as<JsonObject&>();
183+
jsonObject.set("type", "");
184+
jsonObject.set("type", type);
185185
return obj;
186186
}
187187

0 commit comments

Comments
 (0)