Skip to content

Commit

Permalink
Use system
Browse files Browse the repository at this point in the history
  • Loading branch information
andyw8 committed Jan 29, 2025
1 parent 43f2e88 commit ff774fe
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions lib/ruby_lsp/tapioca/run_gem_rbi_check.rb
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,7 @@ def run

sig { returns(T::Boolean) }
def git_repo?
_, status = Open3.capture2e("git rev-parse --is-inside-work-tree", chdir: project_path)
T.must(status.success?)
!!system("git rev-parse --is-inside-work-tree", chdir: project_path)
end

sig { returns(T::Boolean) }
Expand Down Expand Up @@ -125,8 +124,8 @@ def log_message(message)
end

def execute_in_project_path(*parts)
stdout_and_stderr_str, _status = T.unsafe(Open3).capture2e(*parts, chdir: project_path)
stdout_and_stderr_str
stdout_and_stderr, _status = T.unsafe(Open3).capture2e(*parts, chdir: project_path)
stdout_and_stderr
end
end
end
Expand Down

0 comments on commit ff774fe

Please sign in to comment.