Skip to content

Commit 8368ce9

Browse files
committed
Whitespace and linting (part of #318)
1 parent 7214bb5 commit 8368ce9

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

lib/query/woqlQuery.js

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -29,14 +29,14 @@ const typedef = require('../typedef');
2929

3030
// I HAVE TO REVIEW THE Inheritance and the prototype chain
3131
class WOQLQuery extends WOQLCore {
32-
/**
33-
* defines the internal functions of the woql query object - the
34-
* language API is defined in WOQLQuery
35-
* @module WOQLQuery
36-
* @constructor
37-
* @param {object} [query] json-ld query for initialisation
38-
* @returns {WOQLQuery}
39-
*/
32+
/**
33+
* defines the internal functions of the woql query object - the
34+
* language API is defined in WOQLQuery
35+
* @module WOQLQuery
36+
* @constructor
37+
* @param {object} [query] json-ld query for initialisation
38+
* @returns {WOQLQuery}
39+
*/
4040

4141
/**
4242
* Update a pattern matching rule for the triple (Subject, Predicate, oldObjValue) with the
@@ -373,7 +373,7 @@ WOQLQuery.prototype.and = function (...subqueries) {
373373
const onevar = this.jobj(subqueries[i]);
374374
if (
375375
onevar['@type'] === 'And'
376-
&& onevar.and
376+
&& onevar.and
377377
) {
378378
for (let j = 0; j < onevar.and.length; j++) {
379379
const qjson = onevar.and[j];
@@ -1487,7 +1487,7 @@ WOQLQuery.prototype.order_by = function (...orderedVarlist) {
14871487
);
14881488
}
14891489
const embedquery = typeof orderedVarlist[orderedVarlist.length - 1] === 'object'
1490-
&& orderedVarlist[orderedVarlist.length - 1].json
1490+
&& orderedVarlist[orderedVarlist.length - 1].json
14911491
? orderedVarlist.pop()
14921492
: false;
14931493

lib/woqlClient.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -667,7 +667,7 @@ WOQLClient.prototype.query = function (woql, commitMsg, allWitnesses, lastDataVe
667667
const fileName = resourceObject.source.post.split('/').pop();
668668

669669
if (providedResourceInsteadOfFile) {
670-
formData.append("file", new Blob([providedResourceInsteadOfFile], { type: "application/csv" }), fileName)
670+
formData.append('file', new Blob([providedResourceInsteadOfFile], { type: 'application/csv' }), fileName);
671671
} else {
672672
formData.append('file', fs.createReadStream(resourceObject.source.post));
673673
}

0 commit comments

Comments
 (0)