Remove duplicated assertion. Covered by validate()

This commit is contained in:
Logan Smyth 2017-11-22 18:27:12 -08:00
parent 18ea5aca51
commit 1d0a3d6772

View File

@ -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 {
alias: filepath || `${alias}$${index}`,
value,