Skip to content

Commit c576c33

Browse files
Minor syntax/linter fixes
1 parent 60531e4 commit c576c33

2 files changed

Lines changed: 5 additions & 4 deletions

File tree

lib/bundle.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ function crawl (parent, key, path, pathFromRoot, indirections, inventory, $refs,
6464
}
6565
});
6666

67+
// eslint-disable-next-line no-shadow
6768
keys.forEach((key) => {
6869
let keyPath = Pointer.join(path, key);
6970
let keyPathFromRoot = Pointer.join(pathFromRoot, key);

lib/pointer.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ module.exports = Pointer;
55
const $Ref = require("./ref");
66
const url = require("./util/url");
77
const ono = require("ono");
8-
slashes = /\//g,
9-
tildes = /~/g,
10-
escapedSlash = /~1/g,
11-
escapedTilde = /~0/g;
8+
const slashes = /\//g;
9+
const tildes = /~/g;
10+
const escapedSlash = /~1/g;
11+
const escapedTilde = /~0/g;
1212

1313
/**
1414
* This class represents a single JSON pointer and its resolved value.

0 commit comments

Comments
 (0)