Fix clippy error for wasm

This commit is contained in:
Jeong YunWon committed 2020-10-10 13:28:17 +09:00
1 parent 690fc31808
commit b798caa012
1 file changed
+1 -4
+1 -4
View File
@@ -231,10 +231,7 @@ pub fn syntax_err(err: CompileError) -> SyntaxError {
&"col".into(),
&(err.location.column() as u32).into(),
);
let can_continue = match &err.error {
CompileErrorType::Parse(ParseErrorType::EOF) => true,
_ => false,
};
let can_continue = matches!(&err.error, CompileErrorType::Parse(ParseErrorType::EOF));
let _ = Reflect::set(&js_err, &"canContinue".into(), &can_continue.into());
js_err
}