mirror of
				https://github.com/iv-org/invidious.git
				synced 2025-10-31 04:32:02 +00:00 
			
		
		
		
	Remove useless intermediary variable in youtube_api.cr
This fixes an ameba warning
This commit is contained in:
		| @@ -416,10 +416,9 @@ module YoutubeAPI | ||||
|     # Send the POST request | ||||
|     if {{ !flag?(:disable_quic) }} && CONFIG.use_quic | ||||
|       # Using QUIC client | ||||
|       response = YT_POOL.client(client_config.proxy_region, | ||||
|       body = YT_POOL.client(client_config.proxy_region, | ||||
|         &.post(url, headers: headers, body: data.to_json) | ||||
|       ) | ||||
|       body = response.body | ||||
|       ).body | ||||
|     else | ||||
|       # Using HTTP client | ||||
|       body = YT_POOL.client(client_config.proxy_region) do |client| | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Samantaz Fox
					Samantaz Fox