Fix sorbet errors.
This commit is contained in:
parent
b4fdd6f0b1
commit
4c1b2630dc
@ -38,6 +38,15 @@ class CacheStoreDatabase
|
||||
return_value
|
||||
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).
|
||||
def set(key, value)
|
||||
dirty!
|
||||
@ -120,15 +129,6 @@ class CacheStoreDatabase
|
||||
@db ||= {}
|
||||
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
|
||||
# `@type`.
|
||||
#
|
||||
|
||||
@ -39,8 +39,8 @@ module SPDX
|
||||
end
|
||||
|
||||
def parse_license_expression(license_expression)
|
||||
licenses = []
|
||||
exceptions = []
|
||||
licenses = T.let([], T::Array[T.any(String, Symbol)])
|
||||
exceptions = T.let([], T::Array[String])
|
||||
|
||||
case license_expression
|
||||
when String, Symbol
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user