Skip to content

Commit f8423b2

Browse files
Comply with linter
1 parent 70d0a08 commit f8423b2

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

lib/query/woqlDoc.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -75,10 +75,10 @@ function Doc(obj) {
7575
this.encoded = convert(obj);
7676
}
7777

78-
function Vars() {
79-
for(let k of arguments){
80-
this[k] = new Var(k)
81-
}
78+
function Vars(...args) {
79+
args.forEach(function (k) {
80+
this[k] = new Var(k);
81+
});
8282
}
8383

8484
module.exports = { Vars, Var, Doc };

lib/woql.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
/// /@ts-check
44
// I HAVE TO REVIEW THE Inheritance and the prototype chain
55
const WOQLQuery = require('./query/woqlBuilder');
6-
const { Vars, Var, Doc } = require('./query/woqlDoc');
6+
const { Var, Doc } = require('./query/woqlDoc');
77
/**
88
* @license Apache Version 2
99
* @module WOQL

0 commit comments

Comments
 (0)