wwood / CoverM

Read coverage calculator for metagenomics
GNU General Public License v3.0
273 stars 30 forks source link

feat: use equality for xnor operation on booleans #203

Closed lavafroth closed 4 months ago

lavafroth commented 4 months ago

Instead of manually checking if a record passes a filter and the corresponding filter attribute was set to true or the contrapositive of that, we can just use the equality (xnor) operator.

wwood commented 4 months ago

Thanks. I'm not sure this helps too much with code clarity and I guess has no impact on performance, but it is more concise.