Skip to content

Commit

Permalink
pretty
Browse files Browse the repository at this point in the history
  • Loading branch information
cohenaj194 committed Nov 22, 2024
1 parent 5e15fad commit 6133f38
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions app/routes/wow.out-of-stock.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ export const loader: LoaderFunction = async ({ request }) => {
return json(validParams.data)

Check failure on line 83 in app/routes/wow.out-of-stock.tsx

View check run for this annotation

Codacy Production / Codacy Static Code Analysis

app/routes/wow.out-of-stock.tsx#L83

Unsafe call of an `error` type typed value.

Check failure on line 83 in app/routes/wow.out-of-stock.tsx

View check run for this annotation

Codacy Production / Codacy Static Code Analysis

app/routes/wow.out-of-stock.tsx#L83

Unsafe member access .data on an `error` typed value.
} catch (error) {
return json({
exception: "Invalid URL format"
exception: 'Invalid URL format'
})
}
}
Expand All @@ -93,7 +93,7 @@ export const action: ActionFunction = async ({ request }) => {
const region = session.getWoWSessionData().region

Check failure on line 93 in app/routes/wow.out-of-stock.tsx

View check run for this annotation

Codacy Production / Codacy Static Code Analysis

app/routes/wow.out-of-stock.tsx#L93

Unsafe call of an `error` type typed value.

Check failure on line 93 in app/routes/wow.out-of-stock.tsx

View check run for this annotation

Codacy Production / Codacy Static Code Analysis

app/routes/wow.out-of-stock.tsx#L93

Unsafe member access .getWoWSessionData on an `error` typed value.
if (!region) {
return json({
exception: "Region is required. Please select a region in your settings."
exception: 'Region is required. Please select a region in your settings.'
})
}
const formData = Object.fromEntries(await request.formData())

Check failure on line 99 in app/routes/wow.out-of-stock.tsx

View check run for this annotation

Codacy Production / Codacy Static Code Analysis

app/routes/wow.out-of-stock.tsx#L99

Unsafe member access .formData on an `any` value.
Expand Down Expand Up @@ -131,7 +131,8 @@ export const action: ActionFunction = async ({ request }) => {
})
} catch (error) {
return json({
exception: error instanceof Error ? error.message : 'An unexpected error occurred'
exception:
error instanceof Error ? error.message : 'An unexpected error occurred'
})
}
}
Expand Down

0 comments on commit 6133f38

Please sign in to comment.