tech: more tslint rules

This commit is contained in:
Torkel Ödegaard
2017-09-21 17:23:31 +02:00
parent b8d9722b4f
commit 491fa6cad8
16 changed files with 24 additions and 904 deletions

View File

@@ -156,7 +156,7 @@ export class DataProcessor {
});
fieldParts.pop();
}
if (firstItem.type === 'docs'){
if (firstItem.type === 'docs') {
if (firstItem.datapoints.length === 0) {
return [];
}

View File

@@ -113,7 +113,7 @@ class SingleStatCtrl extends MetricsPanelCtrl {
onDataReceived(dataList) {
const data: any = {};
if (dataList.length > 0 && dataList[0].type === 'table'){
if (dataList.length > 0 && dataList[0].type === 'table') {
this.dataType = 'table';
const tableData = dataList.map(this.tableHandler.bind(this));
this.setTableValues(tableData, data);