Use const keyword to declare variables
This commit is contained in:
parent
5d632d936e
commit
d5d9044686
@ -1,4 +1,4 @@
|
|||||||
var dataviews = require('./');
|
const dataviews = require('./');
|
||||||
|
|
||||||
module.exports = class DataviewFactory {
|
module.exports = class DataviewFactory {
|
||||||
static get dataviews() {
|
static get dataviews() {
|
||||||
@ -9,7 +9,7 @@ module.exports = class DataviewFactory {
|
|||||||
}
|
}
|
||||||
|
|
||||||
static getDataview (query, dataviewDefinition) {
|
static getDataview (query, dataviewDefinition) {
|
||||||
var type = dataviewDefinition.type;
|
const type = dataviewDefinition.type;
|
||||||
if (!this.dataviews[type]) {
|
if (!this.dataviews[type]) {
|
||||||
throw new Error('Invalid dataview type: "' + type + '"');
|
throw new Error('Invalid dataview type: "' + type + '"');
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user