Skip to content

Commit

Permalink
fix(fmt/smiles): remove side effects from assume statements
Browse files Browse the repository at this point in the history
  • Loading branch information
jnooree committed Nov 7, 2024
1 parent be8cd36 commit 782f768
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/fmt/smiles.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -520,8 +520,8 @@ bool update_bond_configuration(Molecule &mol,
continue;

Check warning on line 520 in src/fmt/smiles.cpp

View check run for this annotation

Codecov / codecov/patch

src/fmt/smiles.cpp#L520

Added line #L520 was not covered by tests

auto &src_cfgs = it->second, &dst_cfgs = jt->second;
ABSL_ASSUME(!src_cfgs.empty());
ABSL_ASSUME(!dst_cfgs.empty());
const bool src_empty = src_cfgs.empty(), dst_empty = dst_cfgs.empty();
ABSL_ASSUME(!src_empty && !dst_empty);
if (src_cfgs.size() > 2 || dst_cfgs.size() > 2) {
ABSL_LOG(INFO) << "too many bond configurations specified on bond "
<< bond.id() << "; ignoring";
Expand Down

0 comments on commit 782f768

Please sign in to comment.