Remove duplicated assertion. Covered by validate()
This commit is contained in:
parent
18ea5aca51
commit
1d0a3d6772
@ -366,13 +366,6 @@ function createDescriptor(
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (options != null && typeof options !== "object") {
|
|
||||||
throw new Error(
|
|
||||||
"Plugin/Preset options must be an object, null, or undefined",
|
|
||||||
);
|
|
||||||
}
|
|
||||||
options = options || undefined;
|
|
||||||
|
|
||||||
return {
|
return {
|
||||||
alias: filepath || `${alias}$${index}`,
|
alias: filepath || `${alias}$${index}`,
|
||||||
value,
|
value,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user