Closed PierreF closed 5 months ago
ReasonCodes object could be compared to a number but they couldn't:
reason_code > 0
reason_code == "Success"
The string comparison if useful IMO. The inequality is there more for compatibility with code that used to do rc > 0 and want to do reason_code > 0.
rc > 0
ReasonCodes object could be compared to a number but they couldn't:
reason_code > 0
reason_code == "Success"
The string comparison if useful IMO. The inequality is there more for compatibility with code that used to do
rc > 0
and want to doreason_code > 0
.