changed var to let in 50 files (#13075)

This commit is contained in:
Patrick O'Carroll
2018-08-30 09:03:11 +02:00
committed by Torkel Ödegaard
parent b494a29e02
commit 552a61b6ae
50 changed files with 195 additions and 195 deletions

View File

@@ -18,7 +18,7 @@ export class DashboardMigrator {
}
updateSchema(old) {
var i, j, k, n;
let i, j, k, n;
const oldVersion = this.dashboard.schemaVersion;
const panelUpgrades = [];
this.dashboard.schemaVersion = 16;
@@ -83,7 +83,7 @@ export class DashboardMigrator {
// schema version 3 changes
if (oldVersion < 3) {
// ensure panel ids
var maxId = this.dashboard.getNextPanelId();
let maxId = this.dashboard.getNextPanelId();
panelUpgrades.push(function(panel) {
if (!panel.id) {
panel.id = maxId;