Bug 1245544 - Fix the indentation in Experiments.jsm. r=gfritzsche
authorAlessio Placitelli <alessio.placitelli@gmail.com>
Fri, 04 Mar 2016 06:09:00 +0100
changeset 286988 fe1b8cb74332185af638d0cfe0565726042e66ea
parent 286987 eb559f626161d47fb4c27cdbcddb212698b52d53
child 287014 087905ffec78fb4902e3f7dee90c3be2899ec0e7
push id18031
push useralessio.placitelli@gmail.com
push dateMon, 07 Mar 2016 08:45:07 +0000
treeherderfx-team@fe1b8cb74332 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersgfritzsche
bugs1245544
milestone47.0a1
Bug 1245544 - Fix the indentation in Experiments.jsm. r=gfritzsche
browser/experiments/Experiments.jsm
--- a/browser/experiments/Experiments.jsm
+++ b/browser/experiments/Experiments.jsm
@@ -447,22 +447,22 @@ Experiments.Experiments.prototype = {
       if (this._timer) {
         this._timer.clear();
       }
     }
 
     this._shutdown = true;
     if (this._mainTask) {
       if (this._networkRequest) {
-	try {
-	  this._log.trace("Aborting pending network request: " + this._networkRequest);
-	  this._networkRequest.abort();
-	} catch (e) {
-	  // pass
-	}
+        try {
+          this._log.trace("Aborting pending network request: " + this._networkRequest);
+          this._networkRequest.abort();
+        } catch (e) {
+          // pass
+        }
       }
       try {
         this._log.trace("uninit: waiting on _mainTask");
         yield this._mainTask;
       } catch (e) {
         // We error out of tasks after shutdown via this exception.
         if (!(e instanceof AlreadyShutdownError)) {
           this._latestError = e;
@@ -629,17 +629,17 @@ Experiments.Experiments.prototype = {
 
         list.push({
           id: id,
           name: experiment._name,
           description: experiment._description,
           active: experiment.enabled,
           endDate: experiment.endDate.getTime(),
           detailURL: experiment._homepageURL,
-	  branch: experiment.branch,
+          branch: experiment.branch,
         });
       }
 
       // Sort chronologically, descending.
       list.sort((a, b) => b.endDate - a.endDate);
       return list;
     }.bind(this));
   },
@@ -704,17 +704,17 @@ Experiments.Experiments.prototype = {
     if (id) {
       e = this._experiments.get(id);
       if (!e) {
         throw new Error("Experiment not found");
       }
     } else {
       e = this._getActiveExperiment();
       if (e === null) {
-	throw new Error("No active experiment");
+        throw new Error("No active experiment");
       }
     }
     return e.branch;
   }),
 
   /**
    * Determine whether another date has the same UTC day as now().
    */
@@ -953,17 +953,17 @@ Experiments.Experiments.prototype = {
     xhr.onerror = errorhandler;
     xhr.ontimeout = errorhandler;
     xhr.onabort = errorhandler;
 
     xhr.onload = (event) => {
       if (xhr.status !== 200 && xhr.state !== 0) {
         log.error("httpGetRequest::onLoad() - Request to " + url + " returned status " + xhr.status);
         deferred.reject(new Error("Experiments - XHR status for " + url + " is " + xhr.status));
-	this._networkRequest = null;
+        this._networkRequest = null;
         return;
       }
 
       deferred.resolve(xhr.responseText);
       this._networkRequest = null;
     };
 
     if (xhr.channel instanceof Ci.nsISupportsPriority) {