chore: minor code style tweak

This commit is contained in:
Sam Potts
2021-09-29 21:44:15 +10:00
parent fbf4d27cd4
commit 5d1d247491
10 changed files with 14 additions and 14 deletions

View File

@ -184,13 +184,13 @@ const ui = {
.call(this)
// Load image
.then(() => loadImage(poster))
.catch((err) => {
.catch((error) => {
// Hide poster on error unless it's been set by another call
if (poster === this.poster) {
ui.togglePoster.call(this, false);
}
// Rethrow
throw err;
throw error;
})
.then(() => {
// Prevent race conditions