From 246094d8fc98fac74cab4f32f5cb5900aa79f318 Mon Sep 17 00:00:00 2001 From: ojab Date: Sat, 10 Jul 2021 20:38:18 +0000 Subject: [PATCH] Remove uneeded `if defined?(TLSError)` check It's always defined --- lib/httpx/plugins/retries.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/httpx/plugins/retries.rb b/lib/httpx/plugins/retries.rb index c284d412..b37c1c27 100644 --- a/lib/httpx/plugins/retries.rb +++ b/lib/httpx/plugins/retries.rb @@ -17,7 +17,7 @@ module HTTPX Errno::ECONNRESET, Errno::ECONNABORTED, Errno::EPIPE, - (TLSError if defined?(TLSError)), + TLSError, TimeoutError, Parser::Error, Errno::EINVAL,