Skip to content

Commit 02f43ca

Browse files
Potential fix for code scanning alert no. 699: Useless conditional
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
1 parent 87e29d9 commit 02f43ca

1 file changed

Lines changed: 5 additions & 7 deletions

File tree

apps/web/graphql/settings/logic.ts

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -279,13 +279,11 @@ export const updateSSOProvider = async ({
279279
},
280280
);
281281

282-
if (entryPoint) {
283-
ctx.subdomain.settings.ssoTrustedDomain = new URL(
284-
entryPoint,
285-
).origin;
286-
(ctx.subdomain as any).markModified("settings");
287-
await (ctx.subdomain as any).save();
288-
}
282+
ctx.subdomain.settings.ssoTrustedDomain = new URL(
283+
entryPoint,
284+
).origin;
285+
(ctx.subdomain as any).markModified("settings");
286+
await (ctx.subdomain as any).save();
289287

290288
return ssoProvider;
291289
} catch (error: any) {

0 commit comments

Comments
 (0)