Skip to content

Commit

Permalink
chore: typo
Browse files Browse the repository at this point in the history
  • Loading branch information
tachibana-shin committed Mar 5, 2024
1 parent b0c5fd0 commit 832d6e9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pages/phim/_season.vue
Original file line number Diff line number Diff line change
Expand Up @@ -1765,7 +1765,7 @@ const episodesOpEnd = computedAsync<ShallowReactive<ListEpisodes> | null>(
Object.assign(results, data)
} else results = shallowReactive(data)
}),
getDataIDB<string>(`episodes_opend:${realId}`).then((text) => {
get(`episodes_opend:${realId}`).then((text: string) => {
if (!text) throw new Error("not_found_on_idb")

Check failure on line 1769 in src/pages/phim/_season.vue

View workflow job for this annotation

GitHub Actions / Run eslint scanning

Unexpected throw, throwing exceptions is not functional
const data = JSON.parse(text)
Expand Down Expand Up @@ -1853,7 +1853,7 @@ const inoutroEpisode = computedAsync<ShallowReactive<InOutroEpisode> | null>(
Object.assign(results, data)
} else results = shallowReactive(data)
}),
getDataIDB<string>(`inoutro:${id}`).then((text) => {
get(`inoutro:${id}`).then((text: string) => {
if (!text) throw new Error("not_found_on_idb")

Check failure on line 1857 in src/pages/phim/_season.vue

View workflow job for this annotation

GitHub Actions / Run eslint scanning

Unexpected throw, throwing exceptions is not functional
const data = JSON.parse(text)
Expand Down

0 comments on commit 832d6e9

Please sign in to comment.