Skip to content

Commit edcb80a

Browse files
committed
chore(lint): lints
1 parent a66ec47 commit edcb80a

File tree

4 files changed

+7
-6
lines changed

4 files changed

+7
-6
lines changed

lib/bundle.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,6 @@ function crawl<S extends object = JSONSchema, O extends ParserOptions<S> = Parse
8787
}
8888
}) as (keyof typeof obj)[];
8989

90-
// eslint-disable-next-line no-shadow
9190
for (const key of keys) {
9291
const keyPath = Pointer.join(path, key);
9392
const keyPathFromRoot = Pointer.join(pathFromRoot, key);
@@ -290,7 +289,7 @@ function findInInventory(inventory: InventoryEntry[], $refParent: any, $refKey:
290289
return existingEntry;
291290
}
292291
}
293-
return undefined
292+
return undefined;
294293
}
295294

296295
function removeFromInventory(inventory: InventoryEntry[], entry: any) {

lib/dereference.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,9 @@ function dereference$Ref<S extends object = JSONSchema, O extends ParserOptions<
221221
// Check for circular references
222222
const directCircular = pointer.circular;
223223
let circular = directCircular || parents.has(pointer.value);
224-
circular && foundCircularReference(path, $refs, options);
224+
if (circular) {
225+
foundCircularReference(path, $refs, options);
226+
}
225227

226228
// Dereference the JSON reference
227229
let dereferencedValue = $Ref.dereference($ref, pointer.value);

lib/ref.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ class $Ref<S extends object = JSONSchema, O extends ParserOptions<S> = ParserOpt
9191
try {
9292
this.resolve(path, options);
9393
return true;
94-
} catch (e) {
94+
} catch {
9595
return false;
9696
}
9797
}
@@ -195,7 +195,7 @@ class $Ref<S extends object = JSONSchema, O extends ParserOptions<S> = ParserOpt
195195
return true;
196196
}
197197
}
198-
return undefined
198+
return undefined;
199199
}
200200

201201
/**

lib/refs.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ export default class $Refs<S extends object = JSONSchema, O extends ParserOption
7272
try {
7373
this._resolve(path, "", options);
7474
return true;
75-
} catch (e) {
75+
} catch {
7676
return false;
7777
}
7878
}

0 commit comments

Comments
 (0)