Skip to content

Commit

Permalink
Fix typo and remove unnecessary sentence
Browse files Browse the repository at this point in the history
Signed-off-by: Stephen Sun <stephens@nvidia.com>
  • Loading branch information
stephenxs committed Nov 4, 2020
1 parent 5dc96c2 commit 695f07c
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions common/json.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ bool JSon::loadJsonFromFile(ifstream &fs, vector<KeyOpFieldsValuesTuple> &db_ite
{
if (el_count != arr_item.size())
{
SWSS_LOG_ERROR("Chlid elements must have both key and op entry. %s",
SWSS_LOG_ERROR("Child elements must have both key and op entry. %s",
arr_item.dump().c_str());
return false;
}
Expand All @@ -83,10 +83,6 @@ bool JSon::loadJsonFromFile(ifstream &fs, vector<KeyOpFieldsValuesTuple> &db_ite
kfvFieldsValues(cur_db_item).push_back(FieldValueTuple(field_str, value_str));
}
}
else
{
kfvOp(cur_db_item) = cur_obj.get<string>();
}
}
}
else
Expand Down

0 comments on commit 695f07c

Please sign in to comment.