From 48ec69e56f55d6997f97f2e042a8fbc3cc26cc5b Mon Sep 17 00:00:00 2001 From: 0x676e67 Date: Sun, 8 Mar 2026 12:05:02 +0800 Subject: [PATCH] docs(error): Define TlsError class unconditionally --- lib/wreq_ruby/error.rb | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/wreq_ruby/error.rb b/lib/wreq_ruby/error.rb index f32cc0f..19fbd5c 100644 --- a/lib/wreq_ruby/error.rb +++ b/lib/wreq_ruby/error.rb @@ -55,9 +55,7 @@ class ConnectionResetError < StandardError; end # rescue Wreq::TlsError => e # puts "TLS error: #{e.message}" # end - unless const_defined?(:TlsError) - class TlsError < StandardError; end - end + class TlsError < StandardError; end # HTTP protocol and request/response errors