Skip to content

Commit

Permalink
fix: remove unnecessary early return
Browse files Browse the repository at this point in the history
#220 (comment)

Signed-off-by: Jack Cherng <jfcherng@gmail.com>
  • Loading branch information
jfcherng committed Jan 31, 2025
1 parent a62aa1b commit b4793fc
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions plugin/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -196,9 +196,6 @@ def lsp_range_to_st_region(range_: LspRange, view: sublime.View) -> sublime.Regi


def prepare_completion_request_doc(view: sublime.View) -> CopilotDocType | None:
if not view.file_name():
return None

selection = view.sel()[0]
file_path = view.file_name() or f"buffer:{view.buffer().id()}"
return {
Expand Down

0 comments on commit b4793fc

Please sign in to comment.