mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Prettier: Upgrade to 2 (#30387)
* Updated package json but not updated source files * Update eslint plugin * updated files
This commit is contained in:
@@ -16,8 +16,8 @@ export default class ResponseParser {
|
||||
normalizedQuery.indexOf('show field keys') >= 0 || normalizedQuery.indexOf('show retention policies') >= 0;
|
||||
|
||||
const res = {};
|
||||
_.each(influxResults.series, serie => {
|
||||
_.each(serie.values, value => {
|
||||
_.each(influxResults.series, (serie) => {
|
||||
_.each(serie.values, (value) => {
|
||||
if (_.isArray(value)) {
|
||||
// In general, there are 2 possible shapes for the returned value.
|
||||
// The first one is a two-element array,
|
||||
@@ -45,7 +45,7 @@ export default class ResponseParser {
|
||||
});
|
||||
|
||||
// @ts-ignore problems with typings for this _.map only accepts [] but this needs to be object
|
||||
return _.map(res, value => {
|
||||
return _.map(res, (value) => {
|
||||
// @ts-ignore
|
||||
return { text: value.toString() };
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user