Message-ID: In-Reply-To: Content-Transfer-Encoding: binary References: <7c847a1e-32fb-6b09-9886-1ea5ec7f7015@isc.org> X-Mailer: MIME-tools 5.508 (Entity 5.508) X-RT-Original-Encoding: utf-8 Content-Disposition: inline X-RT-Interface: Web MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" RT-Send-CC: Content-Length: 780 On Thu Nov 30 12:28:28 2017, michal wrote: > > A really minor nit, I would personally prefer to replace: > > > > if (!commit || result != ISC_R_SUCCESS) { > > > > with > > > > if ((commit == NULL)[1] || (result != ISC_R_SUCCESS)[2]) { > > > > with this explanation: > > > > [1] to be consistent with rest of code where we use 'text != NULL' > > (as an example from this commit > > But "commit" is a boolean here. Ah, ok, I haven't checked. > > [2] And the parentheses while not necessary just contributes to > > readability and prevents future mistakes. > > This is not documented in our current coding style guidelines, so I > decided against doing this. Naturally, we can further discuss this > suggestion elsewhere. Ok, I'll add this to my All-Hands coding style updates.