repl: Don't run empty code submission (#14598)

Closes #14565.

Release Notes:

- N/A
This commit is contained in:
Kyle Kelley 2024-07-16 13:51:46 -07:00 committed by GitHub
parent 0c6105992c
commit f612c40bee
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -284,6 +284,10 @@ impl Session {
return;
};
if code.is_empty() {
return;
}
let execute_request = ExecuteRequest {
code: code.to_string(),
..ExecuteRequest::default()