Gaël Métais %!s(int64=4) %!d(string=hai) anos
pai
achega
c4b7bd4d71
Modificáronse 1 ficheiros con 5 adicións e 5 borrados
  1. 5 5
      lib/tools/redownload/fontAnalyzer.js

+ 5 - 5
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.');