clean up fetch_bottle_tab
This commit is contained in:
		
							parent
							
								
									17b6948933
								
							
						
					
					
						commit
						44970f728b
					
				| @ -1282,16 +1282,18 @@ on_request: installed_on_request?, options:) | ||||
| 
 | ||||
|   sig { void } | ||||
|   def fetch_bottle_tab | ||||
|     @fetch_bottle_tab ||= begin | ||||
|     return if @fetch_bottle_tab | ||||
| 
 | ||||
|     begin | ||||
|       formula.fetch_bottle_tab | ||||
|       @bottle_tab_runtime_dependencies = formula.bottle_tab_attributes | ||||
|                                                 .fetch("runtime_dependencies", []).then { |deps| deps || [] } | ||||
|                                                 .each_with_object({}) { |dep, h| h[dep["full_name"]] = dep } | ||||
|                                                 .freeze | ||||
|       true | ||||
|     rescue DownloadError, ArgumentError | ||||
|       @fetch_bottle_tab = T.let(true, T.nilable(TrueClass)) | ||||
|       # do nothing | ||||
|     end | ||||
|     @fetch_bottle_tab = T.let(true, T.nilable(TrueClass)) | ||||
|   end | ||||
| 
 | ||||
|   sig { void } | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Douglas Eichelberger
						Douglas Eichelberger