Skip to content

Commit 758ca8b

Browse files
chore(deps-dev): update rubocop requirement from = 1.52.1 to = 1.54.2 (#486)
* chore(deps-dev): update rubocop requirement from = 1.52.1 to = 1.54.2 Updates the requirements on [rubocop](https://github.com/rubocop/rubocop) to permit the latest version. - [Release notes](https://github.com/rubocop/rubocop/releases) - [Changelog](https://github.com/rubocop/rubocop/blob/master/CHANGELOG.md) - [Commits](rubocop/rubocop@v1.52.1...v1.54.2) --- updated-dependencies: - dependency-name: rubocop dependency-type: direct:development ... Signed-off-by: dependabot[bot] <support@github.com> * fix rubocop * fix unless --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Kazuaki Matsuo <fly.49.89.over@gmail.com>
1 parent 580be30 commit 758ca8b

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

appium_lib_core.gemspec

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ Gem::Specification.new do |spec|
3030
spec.add_development_dependency 'minitest', '~> 5.0'
3131
spec.add_development_dependency 'minitest-reporters', '~> 1.1'
3232
spec.add_development_dependency 'webmock', '~> 3.18.1'
33-
spec.add_development_dependency 'rubocop', '1.52.1'
33+
spec.add_development_dependency 'rubocop', '1.54.2'
3434
spec.add_development_dependency 'appium_thor', '~> 1.0'
3535
spec.add_development_dependency 'parallel_tests'
3636
spec.add_development_dependency 'simplecov'

lib/appium_lib_core/common/base/http_default.rb

+2-2
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,8 @@ def update_sending_request_to(scheme:, host:, port:, path:)
5050
return @server_url unless validate_url_param(scheme, host, port, path)
5151

5252
# Add / if 'path' does not have it
53-
path = path.start_with?('/') ? path : "/#{path}"
54-
path = path.end_with?('/') ? path : "#{path}/"
53+
path = "/#{path}" unless path.start_with?('/')
54+
path = "#{path}/" unless path.end_with?('/')
5555

5656
@http = nil
5757
@server_url = URI.parse "#{scheme}://#{host}:#{port}#{path}"

0 commit comments

Comments
 (0)