File tree Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -74,7 +74,7 @@ def initialize(
74
74
def audit
75
75
errors = Set . new
76
76
77
- if !language && ( blocks = language_blocks )
77
+ if !language && ! ( blocks = language_blocks ) . empty?
78
78
sample_languages = if blocks . length > LANGUAGE_BLOCK_LIMIT && !@audit_new_cask
79
79
sample_keys = T . must ( blocks . keys . sample ( LANGUAGE_BLOCK_LIMIT ) )
80
80
ohai "Auditing a sample of available languages for #{ cask } : " \
@@ -140,7 +140,7 @@ def audit_cask_instance(cask)
140
140
audit . run!
141
141
end
142
142
143
- sig { returns ( T . nilable ( T ::Hash [ T ::Array [ String ] , T . proc . returns ( T . untyped ) ] ) ) }
143
+ sig { returns ( T ::Hash [ T ::Array [ String ] , T . proc . returns ( T . untyped ) ] ) }
144
144
def language_blocks
145
145
cask . instance_variable_get ( :@dsl ) . instance_variable_get ( :@language_blocks )
146
146
end
Original file line number Diff line number Diff line change @@ -149,7 +149,6 @@ def initialize(cask)
149
149
@name = T . let ( [ ] , T ::Array [ String ] )
150
150
@on_system_blocks_exist = T . let ( false , T ::Boolean )
151
151
@os = T . let ( nil , T . nilable ( String ) )
152
- @token = cask . token
153
152
@on_system_block_min_os = T . let ( nil , T . nilable ( MacOSVersion ) )
154
153
@sha256 = T . let ( nil , T . nilable ( T . any ( Checksum , Symbol ) ) )
155
154
@staged_path = T . let ( nil , T . nilable ( Pathname ) )
You can’t perform that action at this time.
0 commit comments