Skip to content

Commit 354ce96

Browse files
committed
fix: prettier changes
1 parent 5fbefa1 commit 354ce96

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

packages/community-cli-plugin/src/commands/start/OpenDebuggerKeyboardHandler.js

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -104,16 +104,17 @@ export default class OpenDebuggerKeyboardHandler {
104104
}
105105
const firstNineTargets = targets.slice(0, 9);
106106
const hasDuplicateTitles =
107-
new Set(firstNineTargets.map(target => target.title)).size < firstNineTargets.length;
107+
new Set(firstNineTargets.map(target => target.title)).size <
108+
firstNineTargets.length;
108109

109110
this.#setTerminalMenu(
110111
`Multiple debug targets available, please select:\n ${firstNineTargets
111-
.map(
112-
({title, description}, i) => {
113-
const descriptionSuffix = hasDuplicateTitles ? ` (${description})` : '';
114-
return `${styleText(['white', 'inverse'], ` ${i + 1} `)} - "${title}${descriptionSuffix}"`;
115-
}
116-
)
112+
.map(({title, description}, i) => {
113+
const descriptionSuffix = hasDuplicateTitles
114+
? ` (${description})`
115+
: '';
116+
return `${styleText(['white', 'inverse'], ` ${i + 1} `)} - "${title}${descriptionSuffix}"`;
117+
})
117118
.join('\n ')}`,
118119
);
119120
}

0 commit comments

Comments
 (0)