Merge pull request #15027 from Snuffleupagus/parseFloat-fixes

Remove superfluous trailing arguments from `parseFloat`-calls (PR 14978 follow-up)
This commit is contained in:
Jonas Jenwald 2022-06-11 15:25:24 +02:00 committed by GitHub
commit d7122becaf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -56,8 +56,7 @@ class FreeTextEditor extends AnnotationEditor {
PDFJSDev.test("!PRODUCTION || TESTING") PDFJSDev.test("!PRODUCTION || TESTING")
) { ) {
const lineHeight = parseFloat( const lineHeight = parseFloat(
style.getPropertyValue("--freetext-line-height"), style.getPropertyValue("--freetext-line-height")
10
); );
assert( assert(
lineHeight === LINE_FACTOR, lineHeight === LINE_FACTOR,
@ -66,8 +65,7 @@ class FreeTextEditor extends AnnotationEditor {
} }
this._internalPadding = parseFloat( this._internalPadding = parseFloat(
style.getPropertyValue("--freetext-padding"), style.getPropertyValue("--freetext-padding")
10
); );
} }