Code style: Fix ESLint "default-case" errors

Part of #407.
redux
David Majda 8 years ago
parent 364482dd68
commit e61ae59681

@ -66,8 +66,14 @@ let compiler = {
});
switch (options.output) {
case "parser": return eval(ast.code);
case "source": return ast.code;
case "parser":
return eval(ast.code);
case "source":
return ast.code;
default:
throw new Error("Invalid output format: " + options.output + ".");
}
}
};

Loading…
Cancel
Save