mirror of
				https://github.com/anticensority/runet-censorship-bypass.git
				synced 2025-11-04 01:47:54 +03:00 
			
		
		
		
	Remove unnecessary async, explain *Async in a comment
				
					
				
			This commit is contained in:
		
							parent
							
								
									68df622d71
								
							
						
					
					
						commit
						2ce48cbd50
					
				| 
						 | 
					@ -19,6 +19,14 @@
 | 
				
			||||||
 | 
					
 | 
				
			||||||
*/
 | 
					*/
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					/*
 | 
				
			||||||
 | 
					  Due to History
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  - *Async suffix usually means that function requires a cb.
 | 
				
			||||||
 | 
					    It may not be related to async (returning a Promise).
 | 
				
			||||||
 | 
					    This naming is confusing and should be reconsidered.
 | 
				
			||||||
 | 
					*/
 | 
				
			||||||
 | 
					
 | 
				
			||||||
{ // Private namespace starts.
 | 
					{ // Private namespace starts.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  const mandatory = window.utils.mandatory;
 | 
					  const mandatory = window.utils.mandatory;
 | 
				
			||||||
| 
						 | 
					@ -97,7 +105,7 @@
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  };
 | 
					  };
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  const setPacScriptFromProviderAsync = async function setPacScriptFromProviderAsync(
 | 
					  const setPacScriptFromProviderAsync = function setPacScriptFromProviderAsync(
 | 
				
			||||||
    provider, lastModifiedStr = mandatory(), cb = throwIfError
 | 
					    provider, lastModifiedStr = mandatory(), cb = throwIfError
 | 
				
			||||||
  ) {
 | 
					  ) {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue
	
	Block a user