if/else chain to ternary in small code.

Authored by tcanabrava on Jan 12 2017, 1:42 PM.

Description

if/else chain to ternary in small code.

Those small functions that are basically a return can be
transformed to a ternary without losing the readability.

Signed-off-by: Tomaz Canabrava <tcanabrava@kde.org>

Details

Committed
tcanabravaJan 12 2017, 1:42 PM
Differential Revision
D4101: Remove uneeded if-guard
Parents
R32:64ca4adaa1e8: Use const-ref on foreach
Branches
Unknown
Tags
Unknown