浏览代码

fix: fixed tslint issue introduced in recent prometheus PR merge

Torkel Ödegaard 7 年之前
父节点
当前提交
bae560717d
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      public/app/plugins/datasource/prometheus/datasource.ts

+ 1 - 1
public/app/plugins/datasource/prometheus/datasource.ts

@@ -579,7 +579,7 @@ export class PrometheusDatasource {
   }
 
   getTimeRange(): { start: number; end: number } {
-    let range = this.timeSrv.timeRange();
+    const range = this.timeSrv.timeRange();
     return {
       start: this.getPrometheusTime(range.from, false),
       end: this.getPrometheusTime(range.to, true),