@forge/api
8.3.1-next.08.3.1-next.1
out/api/permissions.js~
out/api/permissions.jsModified+2−4
Index: package/out/api/permissions.js
===================================================================
--- package/out/api/permissions.js
+++ package/out/api/permissions.js
@@ -67,12 +67,10 @@
`Visit https://go.atlassian.com/forge-permissions for more information.`);
}
};
const validateObjectField = (value, fieldPath) => {
- if (value !== undefined) {
- if (typeof value !== 'object' || value === null || Array.isArray(value)) {
- throw new TypeError(`${fieldPath} should be an object, not ${Array.isArray(value) ? 'an array' : `a ${typeof value}`}`);
- }
+ if (typeof value !== 'object' || value === null || Array.isArray(value)) {
+ throw new TypeError(`${fieldPath} should be an object, not ${Array.isArray(value) ? 'an array' : `a ${typeof value}`}`);
}
};
const validateArrayField = (value, fieldPath) => {
if (value !== undefined && !Array.isArray(value)) {