mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-19 22:58:07 +02:00
Remove superfluous trailing arguments from parseFloat
-calls (PR 14978 follow-up)
Fixes two recent "Code scanning alerts" on GitHub, which likely happened because these calls originally used `parseInt` instead (during initial development).
This commit is contained in:
parent
7f4b1c2149
commit
4b2526ebf2
1 changed files with 2 additions and 4 deletions
|
@ -56,8 +56,7 @@ class FreeTextEditor extends AnnotationEditor {
|
|||
PDFJSDev.test("!PRODUCTION || TESTING")
|
||||
) {
|
||||
const lineHeight = parseFloat(
|
||||
style.getPropertyValue("--freetext-line-height"),
|
||||
10
|
||||
style.getPropertyValue("--freetext-line-height")
|
||||
);
|
||||
assert(
|
||||
lineHeight === LINE_FACTOR,
|
||||
|
@ -66,8 +65,7 @@ class FreeTextEditor extends AnnotationEditor {
|
|||
}
|
||||
|
||||
this._internalPadding = parseFloat(
|
||||
style.getPropertyValue("--freetext-padding"),
|
||||
10
|
||||
style.getPropertyValue("--freetext-padding")
|
||||
);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue