mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-19 14:48:08 +02:00
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:
parent
108258a8f8
commit
93e7f630c1
1 changed files with 1 additions and 1 deletions
|
@ -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),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue