Skip to content

Commit 7f28fb2

Browse files
committed
Rubocop - Style/MultilineOperationIndentation
1 parent 978b648 commit 7f28fb2

File tree

4 files changed

+5
-8
lines changed

4 files changed

+5
-8
lines changed

lib/appium_lib/android/element/button.rb

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@ def _button_visible_selectors(opts = {})
1313

1414
if button_index && image_button_index
1515
"new UiSelector().className(#{Button}).instance(#{button_index});" +
16-
"new UiSelector().className(#{ImageButton}).instance(#{image_button_index});"
16+
"new UiSelector().className(#{ImageButton}).instance(#{image_button_index});"
1717
else
1818
"new UiSelector().className(#{Button});" +
19-
"new UiSelector().className(#{ImageButton});"
19+
"new UiSelector().className(#{ImageButton});"
2020
end
2121
end
2222

lib/appium_lib/android/helper.rb

+1-2
Original file line numberDiff line numberDiff line change
@@ -105,8 +105,7 @@ def _fix_android_native_source(source)
105105

106106
# <android.app.ActionBar$Tab => <android.app.ActionBar.Tab
107107
# </android.app.ActionBar$Tab> => </android.app.ActionBar.Tab>
108-
source = source.gsub(/<#{before}\s*\$\s*#{after}/, "<#{fixed}").
109-
gsub(/<\/#{before}\s*\$\s*#{after}>/, "</#{fixed}>")
108+
source = source.gsub(/<#{before}\s*\$\s*#{after}/, "<#{fixed}").gsub(/<\/#{before}\s*\$\s*#{after}>/, "</#{fixed}>")
110109
end
111110

112111
source

lib/appium_lib/common/patch.rb

+1-2
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,7 @@ def raw_execute(command, opts = {}, command_hash = nil)
8585
# to /execute
8686
# path may be nil, session, or not have anything after the session_id.
8787
path_str = path
88-
path_str = '/' + path_str unless path_str.nil? ||
89-
path_str.length <= 0 || path_str[0] == '/'
88+
path_str = '/' + path_str unless path_str.nil? || path_str.length <= 0 || path_str[0] == '/'
9089
path_match = path.match /.*\h{8}-?\h{4}-?\h{4}-?\h{4}-?\h{12}/
9190
path_str = path.sub(path_match[0], '') unless path_match.nil?
9291

lib/appium_lib/driver.rb

+1-2
Original file line numberDiff line numberDiff line change
@@ -174,8 +174,7 @@ def self.promote_singleton_appium_methods(modules)
174174
$driver.send m, *args, &block if $driver.respond_to?(m)
175175
end
176176
# override unless there's an existing method with matching arity
177-
end unless const.respond_to?(m) &&
178-
const.method(m).arity == $driver.method(m).arity
177+
end unless const.respond_to?(m) && const.method(m).arity == $driver.method(m).arity
179178
end
180179
end
181180
end

0 commit comments

Comments
 (0)