diff options
author | Thomas McDonald <thomasm@palantir.com> | 2019-07-04 15:30:15 +0100 |
---|---|---|
committer | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2020-05-08 14:13:29 +0900 |
commit | 12ac0fa9396d08899cc3efdd7398f71b618ba9a0 (patch) | |
tree | 479d203b3f902f268e893456ffc1dc40a78aaa91 /lib/fileutils.rb | |
parent | acb793b71c2465c2cc527393eab57fe29f53f665 (diff) | |
download | ruby-12ac0fa9396d08899cc3efdd7398f71b618ba9a0.tar.gz |
[rubygems/rubygems] Simplify host switching logic
This block was a branch and variable heavy way of saying use the
user-provided host if available, or fall-back to the default host if
none of the other options match. IMO the resultant single-if condition
is clearer in intentions
https://github.com/rubygems/rubygems/commit/42dbb71cfa
Diffstat (limited to 'lib/fileutils.rb')
0 files changed, 0 insertions, 0 deletions