Skip to content

Commit 14dc49f

Browse files
committed
Add new lines to comment + breaks
1 parent 436f991 commit 14dc49f

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

examples/sdk/node/src/index.ts

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,10 @@ async function sendMessage(message: string, attributes: Record<string, number>)
4040

4141
function showMenu() {
4242
const menu =
43-
`Please pick one of available options:` +
44-
`1. Send an exception` +
45-
`2. Send a message` +
46-
`0. Exit` +
43+
`Please pick one of available options:\n` +
44+
`1. Send an exception\n` +
45+
`2. Send a message\n` +
46+
`0. Exit\n` +
4747
`Type the option number:`;
4848
reader.question(menu, async function executeUserOption(optionString: string) {
4949
const option = parseInt(optionString);
@@ -52,10 +52,12 @@ function showMenu() {
5252

5353
switch (option) {
5454
case 1: {
55-
return await sendHandledException(attributes);
55+
await sendHandledException(attributes);
56+
break;
5657
}
5758
case 2: {
58-
return await sendMessage('test message', attributes);
59+
await sendMessage('test message', attributes);
60+
break;
5961
}
6062
case 0: {
6163
reader.close();

0 commit comments

Comments
 (0)