don't attempt to eval and record down if the repl line is empty (#6674)

This commit is contained in:
pwygab 2022-10-09 05:38:35 +08:00 committed by GitHub
parent 7910d20e50
commit 118033e4a5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -452,7 +452,7 @@ pub fn evaluate_repl(
span,
},
);
} else {
} else if !s.trim().is_empty() {
trace!("eval source: {}", s);
eval_source(