remove redundant conditional expressions (#2756)

* remove redundant conditional expressions

* remove redundant conditional expression

Co-authored-by: Syed Ali Shahbaz <[email protected]>
This commit is contained in:
HashenandSyed Ali Shahbaz authored and GitHub committed 2022-05-16 11:26:32 -06:00
1 parent 2eae40eff2
commit e4c5df7a2e
2 files changed
+2 -2

No files matched your search

@@ -8,7 +8,7 @@ export const hasTemplateIntegration = (props: WebhookIntegrationProps) => {
const ind = supportedWebhookIntegrationList.findIndex((integration) => {
return props.url.includes(integration);
});
return ind > -1 ? true : false;
return ind > -1;
};
const customTemplate = (props: WebhookIntegrationProps) => {