Skip to content

Commit cfe0b6f

Browse files
committed
merge origin
2 parents d519ff7 + f8423b2 commit cfe0b6f

File tree

2 files changed

+6
-8
lines changed

2 files changed

+6
-8
lines changed

lib/query/woqlDoc.js

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

78-
function Vars() {
79-
for (let arg = 0; arg < arguments.length; arg += 1) {
80-
// eslint-disable-next-line prefer-rest-params
81-
this[arguments[arg]] = new Var(arguments[arg]);
82-
}
83-
}
78+
function Vars(...args) {
79+
args.forEach(function (k) {
80+
this[k] = new Var(k);
81+
});
8482

85-
module.exports = { Vars, Var, Doc };
83+
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)