Commit 09a39e9
committed
Make check explicitly 'not None'.
The only way r would be 'None' is if a symmetrical reaction (reactants == products)
was found in a library, and hit this check in check_for_existing_reaction that's called by
make_new_reaction. But that suggests some other problem. So I doubt this test is often needed.
But Matt added it for something.
I can't see any way it would be False, so now we check it's not None.
(as requested in code review)1 parent 6071531 commit 09a39e9
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1712 | 1712 | | |
1713 | 1713 | | |
1714 | 1714 | | |
1715 | | - | |
1716 | 1715 | | |
| 1716 | + | |
1717 | 1717 | | |
1718 | 1718 | | |
1719 | 1719 | | |
| |||
0 commit comments