Commit c148e54b by bergquist

style(influxdb): improve naming

parent 267ab822
......@@ -12,13 +12,13 @@ export default class ResponseParser {
return [];
}
var newInfluxdbFormat = query.toLowerCase().indexOf('show tag values') >= 0;
var influxdb11format = query.toLowerCase().indexOf('show tag values') >= 0;
var res = {};
_.each(influxResults.series, serie => {
_.each(serie.values, value => {
if (_.isArray(value)) {
if (newInfluxdbFormat) {
if (influxdb11format) {
addUnique(res, value[1] || value[0]);
} else {
addUnique(res, value[0]);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment