Skip to content

Commit

Permalink
merged the nested conditions
Browse files Browse the repository at this point in the history
  • Loading branch information
annaborn committed Mar 8, 2024
1 parent c2a7bdf commit dde6f6b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/autoproj/git_server_configuration.rb
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,8 @@ def self.git_server_configuration(name, base_url,
end

Autoproj.add_source_handler name.downcase do |url, private: false, **vcs_options|
if add_suffix
url += ".git" if url !~ /\.git$/
if add_suffix && url !~ /\.git$/
url += ".git"
end
url = "/#{url}" if url !~ /^\//

Expand Down

0 comments on commit dde6f6b

Please sign in to comment.