PR comment.
This commit is contained in:
parent
15fb54e841
commit
21cc83daf4
|
@ -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`)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue