Skip to content

Commit

Permalink
Fix TypeScript errors
Browse files Browse the repository at this point in the history
  • Loading branch information
lukechilds committed Apr 4, 2024
1 parent 913ff56 commit 096171d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export default async function blacklistUASDriver() {
if (!uevent.includes('DRIVER=uas')) continue
const [vendorId, productId] = uevent
.split('\n')
.find((line) => line?.startsWith('PRODUCT='))
.find((line) => line?.startsWith('PRODUCT='))!
.replace('PRODUCT=', '')
.split('/')
const deviceId = `${vendorId}:${productId}`
Expand Down
2 changes: 1 addition & 1 deletion packages/umbreld/source/modules/server/trpc/routes/apps.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export default router({
}),
)

const appDataSortedByNames = appData.sort((a, b) => a.name?.localeCompare(b.name))
const appDataSortedByNames = appData.sort((a, b) => (a.name ?? '').localeCompare(b.name ?? ''))

return appDataSortedByNames
}),
Expand Down

0 comments on commit 096171d

Please sign in to comment.