Aesthetic consistency with how we get values from Hashes in bosh code.

On Wed, Jan 29, 2014 at 1:41 PM, Jesse Zhang <notifications@github.com>
wrote:

>>  
>> -      [sc['name'], "#{sc['version']}#{deployments.empty? ? '' : '*'}", sc['cid']]
>> +      [sc['name'], "#{sc['version']}#{any_deployments ? '*' : ''}", sc['cid']]
>> +    end
>> +
>> +    def deployments_count(sc)
>> +      sc.fetch('deployments_count', nil) || sc.fetch('deployments', []).size
> what's the point of using `fetch` if we specify a default of `nil`?
> ---
> Reply to this email directly or view it on GitHub:
> https://github.com/cloudfoundry/bosh/pull/501/files#r9285843