Clean up some code using "(expr) ? true : false"
Michael Paquier <michael@paquier.xyz>
Clean up some code using "(expr) ? true : false" All the code paths simplified here were already using a boolean or used an expression that led to zero or one, making the extra bits unnecessary. Author: Justin Pryzby Reviewed-by: Tom Lane, Michael Paquier, Peter Smith Discussion: https://postgr.es/m/20210428182936.GE27406@telsasoft.com
Files
Discussion
- strange case of "if ((a & b))" 27 messages · 2021-04-28 → 2021-10-11