Skip to content

Commit a9c7bf7

Browse files
committed
Fix lint errors
1 parent 24fd2da commit a9c7bf7

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

lib/pointer.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ class Pointer<S extends object = JSONSchema, O extends ParserOptions<S> = Parser
8888
*/
8989
resolve(obj: S, options?: O, pathFromRoot?: string) {
9090
const tokens = Pointer.parse(this.path, this.originalPath);
91-
let found: any = [];
91+
const found: any = [];
9292

9393
// Crawl the object, one token at a time
9494
this.value = unwrapOrThrow(obj);
@@ -129,10 +129,10 @@ class Pointer<S extends object = JSONSchema, O extends ParserOptions<S> = Parser
129129
path = this.$ref.path;
130130
}
131131

132-
let targetRef = this.path.replace(path, '');
133-
let targetFound = Pointer.join('', found);
134-
let parentPath = pathFromRoot?.replace(path, '');
135-
132+
const targetRef = this.path.replace(path, '');
133+
const targetFound = Pointer.join('', found);
134+
const parentPath = pathFromRoot?.replace(path, '');
135+
136136
throw new MissingPointerError(token, decodeURI(this.originalPath), targetRef, targetFound, parentPath);
137137
} else {
138138
this.value = this.value[token];

0 commit comments

Comments
 (0)