diff options
author | Samuel Giddins <segiddins@segiddins.me> | 2016-01-04 22:43:16 -0600 |
---|---|---|
committer | Samuel Giddins <segiddins@segiddins.me> | 2016-01-25 10:49:51 -0600 |
commit | 07997bc535a450b401e7c34348a882c7ffc2b61a (patch) | |
tree | 3754656b17672c1aa6f9b98e39710112cc9d2dba | |
parent | 7e8a350c6c50944d6ffd88466c4546e3fca6c5d8 (diff) | |
download | bundler-07997bc535a450b401e7c34348a882c7ffc2b61a.tar.gz |
[EndpointSpec] Avoid creating unused hashes
-rw-r--r-- | lib/bundler/endpoint_specification.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/bundler/endpoint_specification.rb b/lib/bundler/endpoint_specification.rb index a00fffcfc2..011da52f8f 100644 --- a/lib/bundler/endpoint_specification.rb +++ b/lib/bundler/endpoint_specification.rb @@ -13,7 +13,7 @@ module Bundler @platform = platform @dependencies = dependencies.map {|dep, reqs| build_dependency(dep, reqs) } - parse_metadata(metadata || {}) + parse_metadata(metadata) end def fetch_platform @@ -101,6 +101,7 @@ module Bundler end def parse_metadata(data) + return unless data data.each do |k, v| next unless v case k.to_s |