Skip to content

Commit

Permalink
repl: Don't run empty code submission (#14598)
Browse files Browse the repository at this point in the history
Closes #14565.

Release Notes:

- N/A
  • Loading branch information
rgbkrk authored Jul 16, 2024
1 parent 0c61059 commit f612c40
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions crates/repl/src/session.rs
Original file line number Diff line number Diff line change
Expand Up @@ -284,6 +284,10 @@ impl Session {
return;
};

if code.is_empty() {
return;
}

let execute_request = ExecuteRequest {
code: code.to_string(),
..ExecuteRequest::default()
Expand Down

0 comments on commit f612c40

Please sign in to comment.