ME: I have the following typescript code and I need to refactor it to not returns true value twice:
validate(network: TimeseriesNetwork): boolean {
this.axisSpacingValidated = true;
this.axisLengthValidated = true;
if (!this.axisSpacing && !this.axisLength) {
return true;
}