Skip to content

Commit 05d2458

Browse files
Fix case statement
1 parent b3d3a7c commit 05d2458

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

lib/query/woqlCore.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -709,7 +709,7 @@ function getClauseAndRemainder(pat) {
709709

710710
function compilePredicate(pp, q) {
711711
if (pp.indexOf('<') !== -1 && pp.indexOf('>') !== -1) {
712-
let pred = pp.slice(1, pp.length - 1);
712+
const pred = pp.slice(1, pp.length - 1);
713713
// eslint-disable-next-line no-multi-assign,no-constant-condition
714714
const cleaned = pred === '.' ? null : q.cleanPathPredicate(pred);
715715
return {

lib/query/woqlPrinter.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -357,9 +357,9 @@ WOQLPrinter.prototype.decompilePathPattern = function (pstruct) {
357357
// eslint-disable-next-line default-case
358358
switch (t) {
359359
case 'InversePathPredicate':
360-
return pstruct.predicate ? `<${pstruct.predicate}` : '<.'
360+
return pstruct.predicate ? `<${pstruct.predicate}` : '<.';
361361
case 'PathPredicate':
362-
return pstruct.predicate ? `${pstruct.predicate}` : '.'
362+
return pstruct.predicate ? `${pstruct.predicate}` : '.';
363363
case 'PathPlus':
364364
var next = pstruct.plus;
365365
if (Array.isArray(next)) next = next[0];

0 commit comments

Comments
 (0)