Skip to content

Commit 43fb9e7

Browse files
committed
chore: tweak naming in an internal variable
1 parent 1f943ae commit 43fb9e7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/appium_lib_core/common/base/driver.rb

+3-3
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ def update_sending_request_to(protocol:, host:, port:, path:)
7676
path: path)
7777
end
7878

79-
AVAILABLE_METHOD = [
79+
AVAILABLE_METHODS = [
8080
:get, :head, :post, :put, :delete,
8181
:connect, :options, :trace, :patch
8282
].freeze
@@ -135,8 +135,8 @@ def update_sending_request_to(protocol:, host:, port:, path:)
135135
# @driver.test_action_command(e.ref, 'action')
136136
#
137137
def add_command(method:, url:, name:, &block)
138-
unless AVAILABLE_METHOD.include? method
139-
raise ::Appium::Core::Error::ArgumentError, "Available method is either #{AVAILABLE_METHOD}"
138+
unless AVAILABLE_METHODS.include? method
139+
raise ::Appium::Core::Error::ArgumentError, "Available method is either #{AVAILABLE_METHODS}"
140140
end
141141

142142
# TODO: Remove this logger

0 commit comments

Comments
 (0)