Skip to content

Commit

Permalink
chore(lint): apply lint fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Teages committed Aug 3, 2024
1 parent 3ff28c6 commit 3dfe8d9
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 8 deletions.
2 changes: 1 addition & 1 deletion pages/levels/[id]/manage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ else if (!hasPermission.value) {
}))
}
if (/^\/levels\/(.+)\/manage$/.exec(route.fullPath)) {
if (/^\/levels\/.+\/manage$/.exec(route.fullPath)) {
navigateTo({ name: 'levels-id-manage-listing', params: { id: levelId } }, {
replace: true,
})
Expand Down
1 change: 0 additions & 1 deletion plugins/apexcharts.client.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// @ts-expect-error types lost https://github.com/apexcharts/vue3-apexcharts/issues/95
import VueApexCharts from 'vue3-apexcharts'

export default defineNuxtPlugin((nuxtApp) => {
Expand Down
8 changes: 2 additions & 6 deletions utils/audio.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,16 +19,12 @@ export async function preDecodeAudio(url: string): Promise<string> {
try {
res = await decodeVorbis(new Uint8Array(file))
}
catch (e) {
// ignore
}
catch { /* Ignore */ }
if (!res) {
try {
res = await decodeOpus(new Uint8Array(file))
}
catch (e) {
// ignore
}
catch { /* Ignore */ }
}
if (!res) {
console.error('Failed to decode audio')
Expand Down

0 comments on commit 3dfe8d9

Please sign in to comment.