mirror of
https://github.com/denoland/deno.git
synced 2024-11-25 15:29:32 -05:00
perf(lsp): fix redundant clones for ts responses (#21445)
This commit is contained in:
parent
b012c1692a
commit
e71df60ea3
1 changed files with 1 additions and 2 deletions
|
@ -4452,8 +4452,7 @@ fn request(
|
|||
let state = op_state.borrow_mut::<State>();
|
||||
|
||||
performance.measure(mark);
|
||||
if let Some(response) = state.response.clone() {
|
||||
state.response = None;
|
||||
if let Some(response) = state.response.take() {
|
||||
Ok(response.data)
|
||||
} else {
|
||||
Err(custom_error(
|
||||
|
|
Loading…
Reference in a new issue