diff --git a/ui/desktop/app/routes/scopes/scope/projects/targets.js b/ui/desktop/app/routes/scopes/scope/projects/targets.js index c1da48c1d..9165e112f 100644 --- a/ui/desktop/app/routes/scopes/scope/projects/targets.js +++ b/ui/desktop/app/routes/scopes/scope/projects/targets.js @@ -49,11 +49,9 @@ export default class ScopesScopeProjectsTargetsRoute extends Route { @action async connect(model) { try { - //eslint-disable-next-line no-debugger - debugger; - // Check for cli - const cliPath = await this.ipc.invoke('cliExists'); - if(!cliPath) throw new Error('Cannot find boundary cli.') + // Check for CLI + const cliExists = await this.ipc.invoke('cliExists'); + if (!cliExists) throw new Error('Cannot find Boundary CLI.'); // Create target session const connectionDetails = await this.ipc.invoke('connect', { diff --git a/ui/desktop/electron-app/src/boundary-cli.js b/ui/desktop/electron-app/src/boundary-cli.js index 3ca3ebc9a..01777c5cd 100644 --- a/ui/desktop/electron-app/src/boundary-cli.js +++ b/ui/desktop/electron-app/src/boundary-cli.js @@ -4,8 +4,6 @@ const { spawnAsyncJSONPromise } = require('./spawn-promise'); const cliPath = async () => path.resolve(__dirname, '..', 'cli', 'boundary'); module.exports = { - // Find boundary cli path - path: () => cliPath(), // Check boundary cli existence exists: () => Boolean(cliPath()), // Initiate connection and return output diff --git a/ui/desktop/electron-app/src/handlers.js b/ui/desktop/electron-app/src/handlers.js index 8345d3ab3..37ca4a095 100644 --- a/ui/desktop/electron-app/src/handlers.js +++ b/ui/desktop/electron-app/src/handlers.js @@ -22,11 +22,6 @@ handle('setOrigin', async (requestOrigin) => { */ handle('cliExists', () => boundaryCli.exists()); -/** - * Detect boundary cli path - */ -handle('cliPath', () => boundaryCli.path()); - /** * Establishes a boundary session and returns session details. */