Skip to content

Scheduling infrastructure for absolutely everyone.

remove redundant conditional expressions (#2756)

Hashene4c5df7a2ea6
diff --git a/apps/web/lib/webhooks/integrationTemplate.tsx b/apps/web/lib/webhooks/integrationTemplate.tsx
index 6c9c9f9c278..a461789cb9b 100644
--- a/apps/web/lib/webhooks/integrationTemplate.tsx
+++ b/apps/web/lib/webhooks/integrationTemplate.tsx
@@ -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) => {
diff --git a/apps/web/pages/api/import/savvycal.ts b/apps/web/pages/api/import/savvycal.ts
index 4e5a809132e..fd5e5c3ef7d 100644
--- a/apps/web/pages/api/import/savvycal.ts
+++ b/apps/web/pages/api/import/savvycal.ts
@@ -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,