Skip to content

Commit

Permalink
fix: address linter errors
Browse files Browse the repository at this point in the history
  • Loading branch information
ecshreve committed Nov 23, 2024
1 parent 934926f commit b1d927d
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/tests/tables.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,6 @@ describe("duplicate indices", () => {
describe("api references", () => {
it("should not contain broken links", () => {
let errors = [];
let files = glob.sync("src/*.json");

let resources = {};

forEachFileEntry((filename, entry) => {
Expand All @@ -41,7 +39,7 @@ describe("api references", () => {

forEachFileEntry((filename, topLevelEntry) => {
recurseIntoObject(topLevelEntry, (subEntry) => {
if (!subEntry.hasOwnProperty("url")) return;
if (!subEntry.hasOwnProperty("url")) return; // eslint-disable-line no-prototype-builtins

if (resources[subEntry.url] === undefined) {
errors.push(`${filename}: URL '${subEntry.url}' not found.`);
Expand Down

0 comments on commit b1d927d

Please sign in to comment.