fix: remove null/undefined check for isAuditedSuperBlock (#65624)

This commit is contained in:
Sem Bauke
2026-02-01 05:54:45 +01:00
committed by GitHub
parent 5fa0ccfd8e
commit f197d13fc1
-5
View File
@@ -1,11 +1,6 @@
import { type SuperBlocks, getAuditedSuperBlocks } from '../config/curriculum';
export function isAuditedSuperBlock(language: string, superblock: SuperBlocks) {
// TODO: when all the consumers of this function use TypeScript we can remove
// this check
if (!language || !superblock)
throw Error('Both arguments must be provided for auditing');
const auditedSuperBlocks = getAuditedSuperBlocks({
language
});