Skip to content

Commit

Permalink
fix remaining robucop
Browse files Browse the repository at this point in the history
  • Loading branch information
leoromanovsky committed Jun 28, 2024
1 parent 395c6f5 commit 687fc32
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ruby-sdk/lib/eppo_client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
require_relative "eppo_client/client"
require_relative "eppo_client/version"

# EppoClient is the main module for initializing the Eppo client.
# It provides a method to initialize the client with a given configuration.
module EppoClient
def init(config)
client = EppoClient::Client.instance
Expand Down
2 changes: 2 additions & 0 deletions ruby-sdk/lib/eppo_client/client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ def get_json_assignment(flag_key, subject_key, subject_attributes, default_value
get_assignment_inner(flag_key, subject_key, subject_attributes, "JSON", default_value)
end

# rubocop:disable Metrics/MethodLength
def get_assignment_inner(flag_key, subject_key, subject_attributes, expected_type, default_value)
logger = Logger.new($stdout)
begin
Expand Down Expand Up @@ -71,6 +72,7 @@ def get_assignment_inner(flag_key, subject_key, subject_attributes, expected_typ
default_value
end
end
# rubocop:enable Metrics/MethodLength

private :get_assignment_inner
end
Expand Down

0 comments on commit 687fc32

Please sign in to comment.