Skip to content

Commit

Permalink
Silence some RuboCop warnings
Browse files Browse the repository at this point in the history
So CI doesn't look all red.
  • Loading branch information
dentarg committed May 13, 2024
1 parent 2c84478 commit 5c05f61
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/amqp/client/connection.rb
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ def read_loop
READ_EXCEPTIONS = [IOError, OpenSSL::OpenSSLError, SystemCallError,
RUBY_ENGINE == "jruby" ? java.lang.NullPointerException : nil].compact.freeze

def parse_frame(type, channel_id, buf) # rubocop:disable Metrics/MethodLength
def parse_frame(type, channel_id, buf) # rubocop:disable Metrics/MethodLength, Metrics/CyclomaticComplexity
channel = @channels[channel_id]
case type
when 1 # method frame
Expand Down
2 changes: 1 addition & 1 deletion lib/amqp/client/frame_bytes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ class Client
# Each frame type implemented as a method
# Having a class for each frame type is more expensive in terms of CPU and memory
# @api private
module FrameBytes
module FrameBytes # rubocop:disable Metrics/ModuleLength
def self.connection_start_ok(response, properties)
prop_tbl = Table.encode(properties)
[
Expand Down

0 comments on commit 5c05f61

Please sign in to comment.