Prefer using if null operatorsDRT-W1142
PREFER using if null operators instead of null checks in conditional expressions.
BAD:
v = a == null ? b : a;
GOOD:
v = a ?? b;
PREFER using if null operators instead of null checks in conditional expressions.
BAD:
v = a == null ? b : a;
GOOD:
v = a ?? b;