1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-05 12:10:55 +00:00

Remove empty lines around braces with the formatting script

This commit is contained in:
Aaron Franke
2020-09-23 02:29:56 -04:00
parent 66e3060ea1
commit 02161aad5a
221 changed files with 0 additions and 399 deletions

View File

@@ -1,5 +1,4 @@
var Preloader = /** @constructor */ function() {
var DOWNLOAD_ATTEMPTS_MAX = 4;
var progressFunc = null;
var lastProgress = { loaded: 0, total: 0 };
@@ -20,9 +19,7 @@ var Preloader = /** @constructor */ function() {
}
function onXHREvent(resolve, reject, file, tracker, ev) {
if (this.status >= 400) {
if (this.status < 500 || ++tracker[file].attempts >= DOWNLOAD_ATTEMPTS_MAX) {
reject(new Error("Failed loading file '" + file + "': " + this.statusText));
this.abort();
@@ -103,7 +100,6 @@ var Preloader = /** @constructor */ function() {
};
var animateProgress = function() {
var loaded = 0;
var total = 0;
var totalIsValid = true;