Skip to content

Commit 4b2526e

Browse files
committed
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).
1 parent 7f4b1c2 commit 4b2526e

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/display/editor/freetext.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,7 @@ class FreeTextEditor extends AnnotationEditor {
5656
PDFJSDev.test("!PRODUCTION || TESTING")
5757
) {
5858
const lineHeight = parseFloat(
59-
style.getPropertyValue("--freetext-line-height"),
60-
10
59+
style.getPropertyValue("--freetext-line-height")
6160
);
6261
assert(
6362
lineHeight === LINE_FACTOR,
@@ -66,8 +65,7 @@ class FreeTextEditor extends AnnotationEditor {
6665
}
6766

6867
this._internalPadding = parseFloat(
69-
style.getPropertyValue("--freetext-padding"),
70-
10
68+
style.getPropertyValue("--freetext-padding")
7169
);
7270
}
7371

0 commit comments

Comments
 (0)