Skip to content

Commit

Permalink
style: 🚨 lint
Browse files Browse the repository at this point in the history
  • Loading branch information
djdembeck committed Dec 18, 2023
1 parent d9c0b50 commit 4ee793a
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/helpers/books/audible/ChapterHelper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,8 @@ class ChapterHelper {
let chapterTitle = strippedTitle
// Check if title is just numbers
const isNotNumber = isNaN(Number(strippedTitle))
// Check if title has an underscore between Chapter and number
const hasUnderscore = strippedTitle.includes('_')
// Check if title has an underscore between Chapter and number
const hasUnderscore = strippedTitle.includes('_')
if (!isNotNumber && strippedTitle.length <= 3) {
// Remove trailing period in some cases
const stripPeriod: string = strippedTitle
Expand All @@ -70,10 +70,10 @@ class ChapterHelper {
const strTitle: string = numTitle.toString()
chapterTitle = `${chapterNameLocale} ${strTitle}`
} else if (hasUnderscore) {
const splitTitle = strippedTitle.split('_')
const numTitle = splitTitle[1]
chapterTitle = `${chapterNameLocale} ${numTitle}`
}
const splitTitle = strippedTitle.split('_')
const numTitle = splitTitle[1]
chapterTitle = `${chapterNameLocale} ${numTitle}`
}

return chapterTitle
}
Expand Down

0 comments on commit 4ee793a

Please sign in to comment.