Fix sorbet errors.

This commit is contained in:
Mike McQuaid 2020-12-28 13:34:07 +00:00
parent b4fdd6f0b1
commit 4c1b2630dc
No known key found for this signature in database
GPG Key ID: 48A898132FD8EE70
2 changed files with 11 additions and 11 deletions

View File

@ -38,6 +38,15 @@ class CacheStoreDatabase
return_value return_value
end end
# Creates a CacheStoreDatabase.
#
# @param [Symbol] type
# @return [nil]
def initialize(type)
@type = type
@dirty = false
end
# Sets a value in the underlying database (and creates it if necessary). # Sets a value in the underlying database (and creates it if necessary).
def set(key, value) def set(key, value)
dirty! dirty!
@ -120,15 +129,6 @@ class CacheStoreDatabase
@db ||= {} @db ||= {}
end end
# Creates a CacheStoreDatabase.
#
# @param [Symbol] type
# @return [nil]
def initialize(type)
@type = type
@dirty = false
end
# The path where the database resides in the `HOMEBREW_CACHE` for the given # The path where the database resides in the `HOMEBREW_CACHE` for the given
# `@type`. # `@type`.
# #

View File

@ -39,8 +39,8 @@ module SPDX
end end
def parse_license_expression(license_expression) def parse_license_expression(license_expression)
licenses = [] licenses = T.let([], T::Array[T.any(String, Symbol)])
exceptions = [] exceptions = T.let([], T::Array[String])
case license_expression case license_expression
when String, Symbol when String, Symbol