Skip to content

Commit

Permalink
#
Browse files Browse the repository at this point in the history
Signed-off-by: Theo Truong <theotr@amazon.com>
  • Loading branch information
nhtruong committed Dec 12, 2024
1 parent 1c6650e commit b88ec2d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/opensearch/api/utils.rb
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def self.normalize_arguments(args)
# @param [Set<String>] valid_param_names the list of valid params names for the api method
def self.validate_query_params(params, valid_param_names = nil)
params.each_key do |k|
next if valid_param_names.present? && valid_param_names.include?(k)
next if valid_param_names&.include?(k)
next if GLOBAL_QUERY_PARAMS.include?(k)
raise ArgumentError, "URL parameter '#{k}' is not supported"
end
Expand Down

0 comments on commit b88ec2d

Please sign in to comment.