Skip to content

Commit 4716472

Browse files
committed
Fix typo and remove unnecessary sentence
Signed-off-by: Stephen Sun <stephens@nvidia.com>
1 parent 3099384 commit 4716472

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

common/json.cpp

+1-5
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ bool JSon::loadJsonFromFile(ifstream &fs, vector<KeyOpFieldsValuesTuple> &db_ite
5858
{
5959
if (el_count != arr_item.size())
6060
{
61-
SWSS_LOG_ERROR("Chlid elements must have both key and op entry. %s",
61+
SWSS_LOG_ERROR("Child elements must have both key and op entry. %s",
6262
arr_item.dump().c_str());
6363
return false;
6464
}
@@ -83,10 +83,6 @@ bool JSon::loadJsonFromFile(ifstream &fs, vector<KeyOpFieldsValuesTuple> &db_ite
8383
kfvFieldsValues(cur_db_item).push_back(FieldValueTuple(field_str, value_str));
8484
}
8585
}
86-
else
87-
{
88-
kfvOp(cur_db_item) = cur_obj.get<string>();
89-
}
9086
}
9187
}
9288
else

0 commit comments

Comments
 (0)