From 106c39746507c36a41e0a9438baf114c6a8bfb00 Mon Sep 17 00:00:00 2001 From: Andy Waite Date: Tue, 19 Nov 2024 10:01:19 -0500 Subject: [PATCH] Remove redundant rescue in runner client (#528) Remove redundant rescue --- lib/ruby_lsp/ruby_lsp_rails/runner_client.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ruby_lsp/ruby_lsp_rails/runner_client.rb b/lib/ruby_lsp/ruby_lsp_rails/runner_client.rb index 3b0b724f..6092393d 100644 --- a/lib/ruby_lsp/ruby_lsp_rails/runner_client.rb +++ b/lib/ruby_lsp/ruby_lsp_rails/runner_client.rb @@ -27,7 +27,7 @@ def create_client(outgoing_queue) NullClient.new end - rescue Errno::ENOENT, StandardError => e # rubocop:disable Lint/ShadowedException + rescue StandardError => e unless outgoing_queue.closed? outgoing_queue << RubyLsp::Notification.window_log_message( <<~MESSAGE.chomp,