Fix sorbet errors.
This commit is contained in:
parent
b4fdd6f0b1
commit
4c1b2630dc
@ -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`.
|
||||||
#
|
#
|
||||||
|
|||||||
@ -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
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user