Fix error

This commit is contained in:
Gaël Métais
2020-12-21 02:09:24 +01:00
parent f25eb2901e
commit c4b7bd4d71
+5 -5
View File
@@ -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.');