Skip to content

Commit

Permalink
Fix linting errors
Browse files Browse the repository at this point in the history
  • Loading branch information
oBusk committed Oct 17, 2023
1 parent 525846d commit 0f8c7ff
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
5 changes: 2 additions & 3 deletions src/app/[...parts]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,8 @@ const DiffPage = async ({
const { diffFiles, ...optionsQuery } = searchParams;

const specsOrVersions = splitParts(decodeParts(parts));
const { redirect: redirectTarget, canonicalSpecs } = await destination(
specsOrVersions,
);
const { redirect: redirectTarget, canonicalSpecs } =
await destination(specsOrVersions);

if (redirectTarget !== false) {
const specsStr = specsToDiff(canonicalSpecs);
Expand Down
5 changes: 2 additions & 3 deletions src/app/api/[...parts]/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,8 @@ export async function GET(

const specsOrVersions = splitParts(parts);

const { redirect: red, canonicalSpecs } = await destination(
specsOrVersions,
);
const { redirect: red, canonicalSpecs } =
await destination(specsOrVersions);

if (red === false) {
try {
Expand Down

0 comments on commit 0f8c7ff

Please sign in to comment.