Redundant computation
This commit is contained in:
parent
bfc4ac9524
commit
02ebcf8077
@ -89,8 +89,7 @@ class VarLibMergeError(VarLibError):
|
|||||||
# Common case
|
# Common case
|
||||||
details = details + self._incompatible_features(offender_index)
|
details = details + self._incompatible_features(offender_index)
|
||||||
elif "expected" in cause and "got" in cause:
|
elif "expected" in cause and "got" in cause:
|
||||||
offender = [x == cause["expected"] for x in cause["got"]].index(False)
|
got = cause["got"][offender_index]
|
||||||
got = cause["got"][offender]
|
|
||||||
details = details + (
|
details = details + (
|
||||||
f"Expected to see {stack[0]}=={cause['expected']}, instead saw {got}\n"
|
f"Expected to see {stack[0]}=={cause['expected']}, instead saw {got}\n"
|
||||||
)
|
)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user