Skip to content

Commit

Permalink
Fix style check warning.
Browse files Browse the repository at this point in the history
Signed-off-by: Andy Fingerhut <[email protected]>
  • Loading branch information
jafingerhut committed Jan 13, 2025
1 parent e5c617e commit 545580d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/bm_sim/P4Objects.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2018,7 +2018,8 @@ P4Objects::init_pipelines(const Json::Value &cfg_root,
auto conditional_name = cfg_conditional["name"].asString();
auto conditional = get_conditional(conditional_name);

if (!cfg_conditional.isMember("true_next") && !cfg_conditional.isMember("false_next")) {
if (!cfg_conditional.isMember("true_next") &&
!cfg_conditional.isMember("false_next")) {
throw json_exception("conditional must have either or both of the"
" keys 'true_next' and 'false_next'.",
cfg_conditional);
Expand Down

0 comments on commit 545580d

Please sign in to comment.