Skip to content
This repository was archived by the owner on Mar 17, 2025. It is now read-only.

Commit f1c940d

Browse files
committed
Give up...
1 parent 2b47534 commit f1c940d

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/FirebaseArduino.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -179,9 +179,7 @@ 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-
JsonObject& jsonObject = obj.getJsonVariant().as<JsonObject&>();
183-
jsonObject.set("type", "");
184-
jsonObject.set("type", type);
182+
obj.getJsonVariant().as<JsonObject&>().set("type", type);
185183
return obj;
186184
}
187185

0 commit comments

Comments
 (0)