From 4b2526ebf250db299ae3fc32502c0d8588ced7e9 Mon Sep 17 00:00:00 2001 From: Jonas Jenwald Date: Sat, 11 Jun 2022 15:08:12 +0200 Subject: [PATCH] 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). --- src/display/editor/freetext.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/display/editor/freetext.js b/src/display/editor/freetext.js index 1b04c7066..efaa41885 100644 --- a/src/display/editor/freetext.js +++ b/src/display/editor/freetext.js @@ -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") ); }