Use const keyword to declare variables

This commit is contained in:
Daniel García Aubert 2017-09-15 14:05:23 +02:00
parent 5d632d936e
commit d5d9044686

View File

@ -1,4 +1,4 @@
var dataviews = require('./');
const dataviews = require('./');
module.exports = class DataviewFactory {
static get dataviews() {
@ -9,7 +9,7 @@ module.exports = class DataviewFactory {
}
static getDataview (query, dataviewDefinition) {
var type = dataviewDefinition.type;
const type = dataviewDefinition.type;
if (!this.dataviews[type]) {
throw new Error('Invalid dataview type: "' + type + '"');
}