소스 검색

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),