Aronshire / ValoCord

Assignment operators should not be used in return statements JS-0086
Anti-pattern
Minor
a year agoa year old
Return statement should not contain assignment.
106        setTimeout(() => {
107            const userDetail = this.getUserDetails();
108
109            if (!userDetail) return this.isReady = false;110
111            this.isReady = true;
112            this.emit('gameReady', userDetail);