From c54659d11095581fd13b5e7c4ced7d00207b40eb Mon Sep 17 00:00:00 2001 From: Paras Date: Mon, 9 Oct 2023 15:28:37 +0530 Subject: [PATCH] refactor: remove the redundant-jump code (#807) --- library/src/helpers/message.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/library/src/helpers/message.ts b/library/src/helpers/message.ts index 82356dde..5c715885 100644 --- a/library/src/helpers/message.ts +++ b/library/src/helpers/message.ts @@ -56,7 +56,6 @@ export class MessageHelpers { if (payload?.examples()) { return payload.examples()?.map(example => ({ example })); } - return; } @@ -87,7 +86,6 @@ export class MessageHelpers { if (headers?.examples()) { return headers.examples()?.map(example => ({ example })); } - - return; + return undefined; } }