It's generally better to avoid assignment as a side effect in a conditional with something like this:

```ruby
gem_source = ENV['GEM_SOURCE']
if gem_source
  source gem_source
else
  source "https://rubygems.org"
end
```