add braces to the single statement 'if', or write it as `y = (y !== null && y !== undefined) ? y : this.height / this.scale;`