Skip to content

Commit

Permalink
fix: handle extra tail
Browse files Browse the repository at this point in the history
  • Loading branch information
wrn14897 committed Feb 27, 2024
1 parent 7a99b4f commit 87f97eb
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion packages/api/src/tasks/__tests__/checkAlerts.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,6 @@ describe('checkAlerts', () => {
'```',
'Nov 16 22:10:00Z [error] Oh no! Something went wrong!',
'```',
'',
].join('\n'),
type: 'mrkdwn',
},
Expand Down
2 changes: 1 addition & 1 deletion packages/api/src/tasks/checkAlerts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ export const renderAlertTemplate = async ({
? // if the default external action is used, actions in the template won't be used
`${template ?? ''} ${translateExternalActionsToInternal(
defaultExternalAction,
)}`
)}`.trim()
: translateExternalActionsToInternal(template ?? '');

const _hb = Handlebars.create();
Expand Down

0 comments on commit 87f97eb

Please sign in to comment.