Skip to content

Commit

Permalink
chore(Hulu): linting
Browse files Browse the repository at this point in the history
  • Loading branch information
Kuriel23 committed Mar 9, 2025
1 parent 56da842 commit 95b589b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions websites/H/Hulu/presence.ts
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ presence.on('UpdateData', async () => {
details = (await strings).watching
if (title) {
details = (await strings).onHulu
name = title.textContent
name = title?.textContent

Check failure

Code scanning / PMD

Makes sure the TypeScript files are correct Error

Type 'string | null' is not assignable to type 'string | undefined'.
Type 'null' is not assignable to type 'string | undefined'.
}

if (content?.textContent && content.textContent.length > 0)
Expand Down Expand Up @@ -204,7 +204,7 @@ presence.on('UpdateData', async () => {
details = (await strings).watching
if (title) {
details = (await strings).onHulu
name = title.textContent
name = title?.textContent

Check failure

Code scanning / PMD

Makes sure the TypeScript files are correct Error

Type 'string | null' is not assignable to type 'string | undefined'.
Type 'null' is not assignable to type 'string | undefined'.
}

if (content?.textContent && content.textContent.length > 0)
Expand Down

0 comments on commit 95b589b

Please sign in to comment.