Files
coopgo/node_modules/graphql/jsutils/devAssert.js.flow
sgauthier 6e64e138e2
All checks were successful
Publish To Prod / deploy_and_publish (push) Successful in 35s
planning
2024-10-14 09:15:30 +02:00

9 lines
291 B
Plaintext

// @flow strict
export default function devAssert(condition: mixed, message: string): void {
const booleanCondition = Boolean(condition);
// istanbul ignore else (See transformation done in './resources/inlineInvariant.js')
if (!booleanCondition) {
throw new Error(message);
}
}