Skip to content

Commit 2bc8006

Browse files
committed
Rubocop - Style/IfUnlessModifier
1 parent 3434ec7 commit 2bc8006

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

lib/appium_lib/android/helper.rb

+1-3
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,7 @@ def start_element(name, attrs = [])
3838
attributes = {}
3939

4040
attrs.each do |key, value|
41-
if keys.include?(key) && !value.empty?
42-
attributes[key] = value
43-
end
41+
attributes[key] = value if keys.include?(key) && !value.empty?
4442
end
4543

4644
# scoped to: text resource-id content-desc

0 commit comments

Comments
 (0)