Commit c8417ad
authored
Fix comparison between set and dictionary (#146)
The check `card_ords == {}` will always evaluate to `False`, even when it is empty. This is because `card_ords` is a set, and `{}` is a dictionary.
>>> set() == {}
False
The intended check was probably something like "card ords is empty", which can be expressed as `if not card_ords`.1 parent 9f78e4b commit c8417ad
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
101 | 101 | | |
102 | 102 | | |
103 | 103 | | |
104 | | - | |
| 104 | + | |
105 | 105 | | |
106 | 106 | | |
107 | 107 | | |
| |||
0 commit comments