mirror of
				https://github.com/TeamNewPipe/NewPipe
				synced 2025-10-30 23:03:00 +00:00 
			
		
		
		
	Code review suggested changes.
This commit is contained in:
		| @@ -194,17 +194,12 @@ public class CheckForNewAppVersionTask extends AsyncTask<Void, Void, String> { | ||||
|         Signature[] signatures = packageInfo.signatures; | ||||
|         byte[] cert = signatures[0].toByteArray(); | ||||
|         InputStream input = new ByteArrayInputStream(cert); | ||||
|  | ||||
|         CertificateFactory cf = null; | ||||
|  | ||||
|         try { | ||||
|             cf = CertificateFactory.getInstance("X509"); | ||||
|         } catch (CertificateException e) { | ||||
|             e.printStackTrace(); | ||||
|         } | ||||
|  | ||||
|         X509Certificate c = null; | ||||
|  | ||||
|         try { | ||||
|             cf = CertificateFactory.getInstance("X509"); | ||||
|             c = (X509Certificate) cf.generateCertificate(input); | ||||
|         } catch (CertificateException e) { | ||||
|             e.printStackTrace(); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 krtkush
					krtkush