From dc102bbd9cab05590e8ae0e07e16fa6234b16611 Mon Sep 17 00:00:00 2001
From: Zdravko Iliev <zdravko.iliev@vereign.com>
Date: Fri, 15 Apr 2022 14:25:02 +0300
Subject: [PATCH] fix typo

---
 dist/pdfParser.js | 2 +-
 src/pdfParser.ts  | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/dist/pdfParser.js b/dist/pdfParser.js
index 029187e..d825649 100644
--- a/dist/pdfParser.js
+++ b/dist/pdfParser.js
@@ -58,7 +58,7 @@ class PDFparser {
                 const x = typeof coords[index + 1] !== "undefined"
                     ? parseFloat(coords[index + 1].x)
                     : null;
-                const y = typeof typeof coords[index + 1] !== "undefined"
+                const y = typeof coords[index + 1] !== "undefined"
                     ? parseFloat(coords[index + 1].y)
                     : null;
                 console.log(x, y);
diff --git a/src/pdfParser.ts b/src/pdfParser.ts
index c296df7..c1a9304 100644
--- a/src/pdfParser.ts
+++ b/src/pdfParser.ts
@@ -79,7 +79,7 @@ class PDFparser {
           : null;
 
       const y =
-        typeof typeof coords[index + 1] !== "undefined"
+        typeof coords[index + 1] !== "undefined"
           ? parseFloat(coords[index + 1].y)
           : null;
 
-- 
GitLab