Skip to content

Commit

Permalink
chore: remove useless optional chain
Browse files Browse the repository at this point in the history
  • Loading branch information
dominik-stumpf committed Dec 2, 2024
1 parent dc1beca commit 957c2ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/(dashboard)/[guildUrlName]/[pageUrlName]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const GuildPage = async ({
method: "POST",
body: JSON.stringify({ ids: guild.pages?.map((p) => p.pageId!) ?? [] }),

Check warning on line 18 in src/app/(dashboard)/[guildUrlName]/[pageUrlName]/page.tsx

View workflow job for this annotation

GitHub Actions / quality-assurance

lint/style/noNonNullAssertion

Forbidden non-null assertion.
});
const page = pages?.find((p) => p.urlName === pageUrlName)!;
const page = pages.find((p) => p.urlName === pageUrlName)!;

Check warning on line 20 in src/app/(dashboard)/[guildUrlName]/[pageUrlName]/page.tsx

View workflow job for this annotation

GitHub Actions / quality-assurance

lint/style/noNonNullAssertion

Forbidden non-null assertion.
const roles = await fetchGuildApiData<Schemas["RoleFull"][]>("role/batch", {
method: "POST",
body: JSON.stringify({
Expand Down

0 comments on commit 957c2ad

Please sign in to comment.