Polish ternary expressions
Consistently format ternary expressions and always favor `!=` as the the check.
This commit is contained in:
@@ -130,7 +130,7 @@ public class SourceOptions {
|
||||
}
|
||||
|
||||
private String asString(Object arg) {
|
||||
return (arg == null ? null : String.valueOf(arg));
|
||||
return (arg != null ? String.valueOf(arg) : null);
|
||||
}
|
||||
|
||||
public List<String> getSources() {
|
||||
|
||||
Reference in New Issue
Block a user