mirror of
https://github.com/gotson/komga.git
synced 2026-05-08 21:00:16 +02:00
style: fix indentation
This commit is contained in:
parent
a478d90a59
commit
e2e27670fd
1 changed files with 8 additions and 8 deletions
|
|
@ -58,14 +58,14 @@ export default class KomgaBooksService {
|
|||
}
|
||||
|
||||
async analyzeBook (book: BookDto) {
|
||||
try {
|
||||
await this.http.post(`${API_BOOKS}/${book.id}/analyze`)
|
||||
} catch (e) {
|
||||
let msg = `An error occurred while trying to analyze book '${book.name}'`
|
||||
if (e.response.data.message) {
|
||||
msg += `: ${e.response.data.message}`
|
||||
}
|
||||
throw new Error(msg)
|
||||
try {
|
||||
await this.http.post(`${API_BOOKS}/${book.id}/analyze`)
|
||||
} catch (e) {
|
||||
let msg = `An error occurred while trying to analyze book '${book.name}'`
|
||||
if (e.response.data.message) {
|
||||
msg += `: ${e.response.data.message}`
|
||||
}
|
||||
throw new Error(msg)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue