URL:
https://github.com/SSSD/sssd/pull/250
Title: #250: cache_req: Use ternary operator instead of bool+switch
mzidek-rh commented:
"""
What about:
```
if (head->fqnames) {
return true;
} else if (enforce_non_fqnames) {
return false;
} else {
return domain->fqnames;
}
```
I also do not think the switch is very good choice in case of boolean true/false values. I
am Ok with the Lukáš's version, but I like the "if - else if - else" version
even better.
"""
See the full comment at
https://github.com/SSSD/sssd/pull/250#issuecomment-297673939