Skip to content

Commit 82826f2

Browse files
mdvaccameta-codesync[bot]
authored andcommitted
Explicitly set default values for fields of NetworkResource (#54191)
Summary: Pull Request resolved: #54191 Explicitly set default values for fields of NetworkResource changelog: [internal] internal Reviewed By: cortinico Differential Revision: D84954456 fbshipit-source-id: 27f48ca0c174045023da4d87429973b26a788103
1 parent 9d172c0 commit 82826f2

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

packages/react-native/ReactCommon/jsinspector-modern/NetworkIOAgent.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,10 @@ struct ReadStreamParams {
4040

4141
struct NetworkResource {
4242
bool success{};
43-
std::optional<std::string> stream;
44-
std::optional<uint32_t> httpStatusCode;
45-
std::optional<std::string> netErrorName;
46-
std::optional<Headers> headers;
43+
std::optional<std::string> stream{};
44+
std::optional<uint32_t> httpStatusCode{};
45+
std::optional<std::string> netErrorName{};
46+
std::optional<Headers> headers{};
4747
folly::dynamic toDynamic() const {
4848
auto dynamicResource = folly::dynamic::object("success", success);
4949

0 commit comments

Comments
 (0)