Skip to content

Commit

Permalink
make pretty
Browse files Browse the repository at this point in the history
  • Loading branch information
Tonghui Tang committed Aug 19, 2020
1 parent ff5686d commit d364350
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/rest/json.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -634,6 +634,7 @@ bool JsonString2NetworkConfiguration(std::string aString, NetworkConfiguration &
cJSON *value;
cJSON *jsonOut;
bool ret = true;

jsonOut = cJSON_Parse(aString.c_str());
value = cJSON_GetObjectItemCaseSensitive(jsonOut, "networkKey");
VerifyOrExit(cJSON_IsString(value) && (value->valuestring != nullptr), ret = false);
Expand Down

0 comments on commit d364350

Please sign in to comment.