Closed agilgur5 closed 2 years ago
Simplify some conditionals in print-diagnostics by reducing nesting
print-diagnostics
reduce the complexity of the code by decreasing the amount of nesting
note that print returns void anyway, so calling it within the return statement doesn't change anything
print
void
return
forEach
Summary
Simplify some conditionals in
print-diagnostics
by reducing nestingDetails
reduce the complexity of the code by decreasing the amount of nesting
note that
print
returnsvoid
anyway, so calling it within thereturn
statement doesn't change anythingvoid
forEach
at that too