From c4b7bd4d7146fa90f7b5c0d741bb609c6440c9dc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ga=C3=ABl=20M=C3=A9tais?= Date: Mon, 21 Dec 2020 02:09:24 +0100 Subject: [PATCH] Fix error --- lib/tools/redownload/fontAnalyzer.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/tools/redownload/fontAnalyzer.js b/lib/tools/redownload/fontAnalyzer.js index 13fa2ad..a45874e 100644 --- a/lib/tools/redownload/fontAnalyzer.js +++ b/lib/tools/redownload/fontAnalyzer.js @@ -16,11 +16,6 @@ var FontAnalyzer = function() { return deferred.promise; } - var fileSize = entry.weightCheck.bodySize; - var ttf; - var woff2; - var newFileSize; - if (entry.isWebFont) { debug('File %s is a font. Let\'s have a look inside!', entry.url); @@ -50,6 +45,11 @@ var FontAnalyzer = function() { debug('Entering font format converter...'); + var fileSize = entry.weightCheck.bodySize; + var ttf; + var woff2; + var newFileSize; + if (entry.isWoff2) { debug('File is already a woff2.');