Skip to content

Commit

Permalink
Review cmt: explicit return
Browse files Browse the repository at this point in the history
  • Loading branch information
vihu committed Nov 30, 2023
1 parent cc4a37b commit ba4e324
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lsp/src/text_store.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,11 @@ pub fn init_text_store() {
}

pub fn get_text_document(uri: Url) -> Option<String> {
TEXT_STORE
return TEXT_STORE
.get()
.expect("text store not initialized")
.lock()
.expect("text store mutex poisoned")
.get(&uri.to_string())
.cloned()
.cloned();
}

0 comments on commit ba4e324

Please sign in to comment.