mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
tslint: autofix of let -> const (#13033)
This commit is contained in:
@@ -125,11 +125,11 @@ export class EventManager {
|
||||
}
|
||||
}
|
||||
|
||||
let regions = getRegions(annotations);
|
||||
const regions = getRegions(annotations);
|
||||
addRegionMarking(regions, flotOptions);
|
||||
|
||||
let eventSectionHeight = 20;
|
||||
let eventSectionMargin = 7;
|
||||
const eventSectionHeight = 20;
|
||||
const eventSectionMargin = 7;
|
||||
flotOptions.grid.eventSectionHeight = eventSectionMargin;
|
||||
flotOptions.xaxis.eventSectionHeight = eventSectionHeight;
|
||||
|
||||
@@ -147,8 +147,8 @@ function getRegions(events) {
|
||||
}
|
||||
|
||||
function addRegionMarking(regions, flotOptions) {
|
||||
let markings = flotOptions.grid.markings;
|
||||
let defaultColor = DEFAULT_ANNOTATION_COLOR;
|
||||
const markings = flotOptions.grid.markings;
|
||||
const defaultColor = DEFAULT_ANNOTATION_COLOR;
|
||||
let fillColor;
|
||||
|
||||
_.each(regions, region => {
|
||||
@@ -167,7 +167,7 @@ function addRegionMarking(regions, flotOptions) {
|
||||
}
|
||||
|
||||
function addAlphaToRGB(colorString: string, alpha: number): string {
|
||||
let color = tinycolor(colorString);
|
||||
const color = tinycolor(colorString);
|
||||
if (color.isValid()) {
|
||||
color.setAlpha(alpha);
|
||||
return color.toRgbString();
|
||||
|
||||
Reference in New Issue
Block a user