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) => {
+1 -1
View File
@@ -57,7 +57,7 @@ export default async function handler(req: NextApiRequest, res: NextApiResponse)
slug: eventType.slug,
length: eventType.durations[0],
description: eventType.description.replace(/<[^>]*>?/gm, ""),
hidden: eventType.state === "active" ? true : false,
hidden: eventType.state === "active",
users: {
connect: {
id: authenticatedUser.id,