Check correct pair member

I haven't looked deeply, but this looked to be a simple typo unless it's checking one both times because of a type invariant. If that is the case, and the check is correct, then a comment and/or code refactoring to call attention to this would likely be a good idea.
This commit is contained in:
ms-test 2022-10-16 03:53:16 -04:00 committed by GitHub
parent 896f93822d
commit aab149366d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -566,7 +566,7 @@ class Splits(Layout):
ans['one'] = p.one
if isinstance(p.two, Pair):
ans['two'] = add_pair(p.two)
elif p.one is not None:
elif p.two is not None:
ans['two'] = p.two
return ans