Changed parse boolean functionality to allow for undefined"

This commit is contained in:
Alex Holliday
2024-07-09 10:28:41 -07:00
parent 48ca591006
commit f2fc5bd984
+1 -3
View File
@@ -6,10 +6,8 @@
const ParseBoolean = (value) => {
if (value === true || value === "true") {
return true;
} else if (value === false || value === "false") {
return false;
}
throw new Error("Invalid boolean value");
return false;
};
module.exports = {