Aronshire / ValoCord

Either all code paths should have explicit returns, or none of them JS-0045
Anti-pattern
Minor
a year agoa year old
Expected to return a value at the end of function 'createWindow'.
  7const Store = require('electron-store');
  8const store = global.store = new Store();
  9
 10function createWindow() { 11    win = new BrowserWindow({
 12        width: 830,
 13        height: 580,
Expected to return a value at the end of arrow function.
103    }
104
105    async eventHandler() {
106        setTimeout(() => {107            const userDetail = this.getUserDetails();
108
109            if (!userDetail) return this.isReady = false;