dbwrap_tool: Simplify persistent/non-persistent check / dbwrap_tool: Avoid an unnecessary "else"
Jeremy Allison
jra at samba.org
Tue Sep 4 16:02:42 UTC 2018
On Tue, Sep 04, 2018 at 09:10:19AM +0200, Swen Schillig via samba-technical wrote:
> I guess what's a bit distracting is the fact
> that a logical result is gathered by an addition.
>
> Would an XOR not be more clear here ?
>
> if (persistent ^ non_persistent) {
> ...
Good god NO! Sorry Swen, but that is just
unreadable :-).
More information about the samba-technical
mailing list