1
0
Fork 0
mirror of synced 2024-09-20 19:33:10 +12:00

PR comment.

This commit is contained in:
mike12345567 2024-08-15 16:58:17 +01:00
parent 15fb54e841
commit 21cc83daf4

View file

@ -159,11 +159,12 @@ export class FlagSet<V extends Flag<any>, T extends { [key: string]: V }> {
specificallySetFalse.add(feature) specificallySetFalse.add(feature)
} }
// check it's a known flag, confirm its boolean // ignore unknown flags
if ( if (this.isFlagName(feature)) {
this.isFlagName(feature) && continue
typeof flagValues[feature] !== "boolean" }
) {
if (typeof flagValues[feature] !== "boolean") {
throw new Error(`Feature: ${feature} is not a boolean`) throw new Error(`Feature: ${feature} is not a boolean`)
} }