changed var to const 2 (#13068)

* changed var to const

* fixed typo created in last commit

* added or empty object to options in prometheus/datasource
This commit is contained in:
Patrick O'Carroll
2018-08-29 14:27:29 +02:00
committed by Torkel Ödegaard
parent 5e0d0c5816
commit a702603e7b
64 changed files with 667 additions and 666 deletions

View File

@@ -6,16 +6,16 @@ export default class ResponseParser {
return [];
}
var influxResults = results.results[0];
const influxResults = results.results[0];
if (!influxResults.series) {
return [];
}
var normalizedQuery = query.toLowerCase();
var isValueFirst =
const normalizedQuery = query.toLowerCase();
const isValueFirst =
normalizedQuery.indexOf('show field keys') >= 0 || normalizedQuery.indexOf('show retention policies') >= 0;
var res = {};
const res = {};
_.each(influxResults.series, serie => {
_.each(serie.values, value => {
if (_.isArray(value)) {