HiddenBrowser: Lint

This commit is contained in:
Abe Jellinek 2025-08-21 12:19:52 -04:00
parent ee42f44254
commit ea3f14f195

View file

@ -120,7 +120,6 @@ export class HiddenBrowser {
}
/**
*
* @param {String} source - HTTP URL, file: URL, or file path
* @param {Object} [options]
* @param {Boolean} [options.requireSuccessfulStatus]
@ -225,7 +224,7 @@ export class HiddenBrowser {
let response = `${channelInfo.responseStatus} ${channelInfo.responseStatusText}`;
Zotero.debug(`HiddenBrowser.load: ${uri} failed with ${response}`, 2);
// HiddenBrowser will never get returned so we need to clean it up here
this.destroy()
this.destroy();
throw new Zotero.HTTP.UnexpectedStatusException(
{
status: channelInfo.responseStatus
@ -235,6 +234,8 @@ export class HiddenBrowser {
);
}
}
return true;
}
/**