1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-22 07:14:47 -05:00

chore(ci): fix lsp bench due to notification that was accidentally added (#14148)

This commit is contained in:
David Sherret 2022-03-29 17:28:55 -04:00 committed by GitHub
parent 85e16a08c7
commit 4a0b2c28a1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1063,13 +1063,12 @@ impl Inner {
}; };
match format_result { match format_result {
Ok(new_text) => new_text.map(|new_text| { Ok(Some(new_text)) => Some(text::get_edits(
text::get_edits( document.content().as_str(),
document.content().as_str(), &new_text,
&new_text, document.line_index().as_ref(),
document.line_index().as_ref(), )),
) Ok(None) => Some(Vec::new()),
}),
Err(err) => { Err(err) => {
// TODO(lucacasonato): handle error properly // TODO(lucacasonato): handle error properly
warn!("Format error: {}", err); warn!("Format error: {}", err);