Fix brew style

This commit is contained in:
Mike McQuaid 2021-02-16 09:25:34 +00:00
parent 287b4888e6
commit c13d7e6723
No known key found for this signature in database
GPG Key ID: 48A898132FD8EE70
4 changed files with 4 additions and 4 deletions

View File

@ -52,7 +52,7 @@ class Descriptions
private
def short_names
@short_names ||= Hash[@descriptions.keys.map { |k| [k, k.split("/").last] }]
@short_names ||= @descriptions.keys.map { |k| [k, k.split("/").last] }.to_h
end
def short_name_counts

View File

@ -9,7 +9,7 @@ class SoftwareSpec
if deps.is_a?(Hash)
bounds = deps.dup
deps = Hash[*bounds.shift]
deps = bounds.shift
end
bounds = bounds.transform_values { |v| MacOS::Version.from_symbol(v) }

View File

@ -178,7 +178,7 @@ class SoftwareSpec
end
def uses_from_macos(spec, _bounds = {})
spec = Hash[*spec.first] if spec.is_a?(Hash)
spec = spec.dup.shift if spec.is_a?(Hash)
depends_on(spec)
end

View File

@ -110,7 +110,7 @@ module SPDX
else
bracket = false
license_expression.each do |expression|
expressions.push license_expression_to_string(Hash[*expression], bracket: true)
expressions.push license_expression_to_string([expression].to_h, bracket: true)
end
end