Skip to content

Commit

Permalink
starts_with => start_with
Browse files Browse the repository at this point in the history
use ruby method over active support method
  • Loading branch information
kbrock committed Mar 13, 2024
1 parent 6971c67 commit ada3d5d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/manageiq/api/client/connection.rb
Original file line number Diff line number Diff line change
Expand Up @@ -58,12 +58,12 @@ def json_response
end

def api_path(path)
if path.to_s.starts_with?(url.to_s)
if path.to_s.start_with?(url.to_s)
path.to_s
elsif path.to_s.blank?
URI.join(url, API_PREFIX).to_s
else
URI.join(url, path.to_s.starts_with?(API_PREFIX) ? path.to_s : "#{API_PREFIX}/#{path}").to_s
URI.join(url, path.to_s.start_with?(API_PREFIX) ? path.to_s : "#{API_PREFIX}/#{path}").to_s
end
end

Expand Down

0 comments on commit ada3d5d

Please sign in to comment.