Re: [libvirt PATCH 2/4] docs: coding-style: Rewrite section on shortening comparisons

2022-01-14 Thread Ján Tomko
On a Friday in 2022, Tim Wiederhake wrote: The code style showed `bool hasFoos; if (hasFoos == true)` as a good example in one place, only to warn against comparisons with `true` a couple of paragraphs further down. Merge this advice on comparing with `true` into the "Conditional expressions"

[libvirt PATCH 2/4] docs: coding-style: Rewrite section on shortening comparisons

2022-01-14 Thread Tim Wiederhake
The code style showed `bool hasFoos; if (hasFoos == true)` as a good example in one place, only to warn against comparisons with `true` a couple of paragraphs further down. Merge this advice on comparing with `true` into the "Conditional expressions" section and split the example up for