Skip to content

Commit

Permalink
Add comments
Browse files Browse the repository at this point in the history
  • Loading branch information
jterapin committed Sep 12, 2024
1 parent f954824 commit ef15a17
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,11 @@ def loaded_service_clients
end
end

# This check does the following:
# 1 - Checks if the service client is autoload or not
# 2 - Validates whether if is a service client
# note that Seahorse::Client::Base is a superclass for V3 clients
# but for V2, it is Aws::Client
def loaded_service?(constant, service_module)
!::Aws.autoload?(constant) &&
service_module.is_a?(Module) &&
Expand Down

0 comments on commit ef15a17

Please sign in to comment.