Remove unnecessary empty string fallback from the getPDFFileNameFromURL call in web/pdf_document_properties.js (PR 10114 follow-up)

Given that the `getPDFFileNameFromURL` helper function has a specific code-path for handling non-string inputs, this empty string fallback really isn't necessary at the call-site in `web/pdf_document_properties.js`.
This commit is contained in:
Jonas Jenwald 2020-05-20 11:30:03 +02:00
parent 108258a8f8
commit 93e7f630c1

View File

@ -132,7 +132,7 @@ class PDFDocumentProperties {
return Promise.all([
info,
metadata,
contentDispositionFilename || getPDFFileNameFromURL(this.url || ""),
contentDispositionFilename || getPDFFileNameFromURL(this.url),
this._parseFileSize(this.maybeFileSize),
this._parseDate(info.CreationDate),
this._parseDate(info.ModDate),