From 220872d1608eb7bfee00e7110287b5c12ff4a444 Mon Sep 17 00:00:00 2001 From: Chris Cuellar <58723+ChrisC@users.noreply.github.com> Date: Wed, 20 Dec 2023 15:16:03 -0800 Subject: [PATCH] minor cleanup --- scripts/update-bcd.test.ts | 1 - scripts/update-bcd.ts | 7 +++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/scripts/update-bcd.test.ts b/scripts/update-bcd.test.ts index 8332200a3..233827c07 100644 --- a/scripts/update-bcd.test.ts +++ b/scripts/update-bcd.test.ts @@ -17,7 +17,6 @@ import logger from "../lib/logger.js"; import bcd from "../unittest/bcd.test.js"; import { - getStatementSupportRanges, findEntry, getSupportMap, getSupportMatrix, diff --git a/scripts/update-bcd.ts b/scripts/update-bcd.ts index 439049a5b..0cfb8057b 100644 --- a/scripts/update-bcd.ts +++ b/scripts/update-bcd.ts @@ -815,6 +815,13 @@ const skipCurrentBeforeSupport = skip("currentBeforeSupport", ({ } }); +/** + * Iterates through an array of default support statements to detect support for a specific browser version. + * @param version - A version string. + * @param hasSupport - An boolean indicating if a test result for the version shows support. + * @param statements - An array of default statements. + * @returns A boolean indicating whether default statements indicate support for the version. + */ const isSupported = ( version: string, hasSupport: boolean,