explicitly return false instead of undefined

This commit is contained in:
Ben Irvin 2023-04-11 10:37:42 +02:00
parent 81e958bb4e
commit 5040305ba8

View File

@ -28,6 +28,7 @@ const isOptionalAdminType = (diff: Diff) => {
const name = (diff?.values[0] as Schema)?.info?.singularName;
return (OPTIONAL_CONTENT_TYPES as ReadonlyArray<string | undefined>).includes(name);
}
return false;
};
const isIgnorableStrict = (diff: Diff) => isAttributeIgnorable(diff) || isOptionalAdminType(diff);