diff --git a/github-electron/github-electron-main-tests.ts b/github-electron/github-electron-main-tests.ts index a2c40c1d68..00798c382b 100644 --- a/github-electron/github-electron-main-tests.ts +++ b/github-electron/github-electron-main-tests.ts @@ -45,7 +45,6 @@ var shouldQuit = app.makeSingleInstance(function(commandLine, workingDirectory) if (mainWindow.isMinimized()) mainWindow.restore(); mainWindow.focus(); } - return true; }); if (shouldQuit) { diff --git a/github-electron/github-electron.d.ts b/github-electron/github-electron.d.ts index dfcff3d83c..11223154fb 100644 --- a/github-electron/github-electron.d.ts +++ b/github-electron/github-electron.d.ts @@ -280,7 +280,7 @@ declare namespace Electron { * multiple instances of your app to run, this will ensure that only a single instance * of your app is running, and other instances signal this instance and exit. */ - makeSingleInstance(callback: (args: string[], workingDirectory: string) => boolean): boolean; + makeSingleInstance(callback: (args: string[], workingDirectory: string) => void): boolean; /** * Changes the Application User Model ID to id. */