diff options
author | Guillermo Guerrero <wolf.fox1985@gmail.com> | 2019-04-12 20:12:29 +0200 |
---|---|---|
committer | Guillermo Guerrero <wolf.fox1985@gmail.com> | 2019-05-08 09:45:18 +0200 |
commit | f76d664e2dc510d71e29850a2396ec05a4a65c91 (patch) | |
tree | 023d90cf2f315ae066b5b4c01532451177ebc5fc /lib/bundler/cli/add.rb | |
parent | 45ecfc499b08c8f886e362b92b5e35ec80492796 (diff) | |
download | bundler-f76d664e2dc510d71e29850a2396ec05a4a65c91.tar.gz |
Improve if clause.
Diffstat (limited to 'lib/bundler/cli/add.rb')
-rw-r--r-- | lib/bundler/cli/add.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/bundler/cli/add.rb b/lib/bundler/cli/add.rb index 9756ccdeca..7c6235f17c 100644 --- a/lib/bundler/cli/add.rb +++ b/lib/bundler/cli/add.rb @@ -7,7 +7,7 @@ module Bundler def initialize(options, gems) @gems = gems @options = options - @options[:group] = options[:group].split(",").map(&:strip) if !options[:group].nil? && !options[:group].empty? + @options[:group] = options[:group].split(",").map(&:strip) unless options[:group].nil? @version = options[:version].split(",").map(&:strip) unless options[:version].nil? end |