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 } |   sig { void } | ||||||
|   def fetch_bottle_tab |   def fetch_bottle_tab | ||||||
|     @fetch_bottle_tab ||= begin |     return if @fetch_bottle_tab | ||||||
|  | 
 | ||||||
|  |     begin | ||||||
|       formula.fetch_bottle_tab |       formula.fetch_bottle_tab | ||||||
|       @bottle_tab_runtime_dependencies = formula.bottle_tab_attributes |       @bottle_tab_runtime_dependencies = formula.bottle_tab_attributes | ||||||
|                                                 .fetch("runtime_dependencies", []).then { |deps| deps || [] } |                                                 .fetch("runtime_dependencies", []).then { |deps| deps || [] } | ||||||
|                                                 .each_with_object({}) { |dep, h| h[dep["full_name"]] = dep } |                                                 .each_with_object({}) { |dep, h| h[dep["full_name"]] = dep } | ||||||
|                                                 .freeze |                                                 .freeze | ||||||
|       true |  | ||||||
|     rescue DownloadError, ArgumentError |     rescue DownloadError, ArgumentError | ||||||
|       @fetch_bottle_tab = T.let(true, T.nilable(TrueClass)) |       # do nothing | ||||||
|     end |     end | ||||||
|  |     @fetch_bottle_tab = T.let(true, T.nilable(TrueClass)) | ||||||
|   end |   end | ||||||
| 
 | 
 | ||||||
|   sig { void } |   sig { void } | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Douglas Eichelberger
						Douglas Eichelberger