Explorar o código

better variable naming

Marco Vito Moscaritolo %!s(int64=11) %!d(string=hai) anos
pai
achega
02696c8bca
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      src/app/services/influxdb/influxdbDatasource.js

+ 2 - 2
src/app/services/influxdb/influxdbDatasource.js

@@ -130,7 +130,7 @@ function (angular, _, kbn) {
       });
     }
 
-    InfluxDatasource.prototype.doInfluxRequest = function(query, name) {
+    InfluxDatasource.prototype.doInfluxRequest = function(query, label) {
       var _this = this;
       var deferred = $q.defer();
 
@@ -151,7 +151,7 @@ function (angular, _, kbn) {
         };
 
         return $http(options).success(function (data) {
-          data.label = name;
+          data.label = label;
           deferred.resolve(data);
         });
       }, 10);