eliminate nested try/catch blocks for clearer code
This commit is contained in:
parent
6703fa3652
commit
2b59644e02
@ -96,7 +96,7 @@ public class WifiStateChangeService extends Service {
|
||||
if (isCancelled())
|
||||
return null;
|
||||
|
||||
try {
|
||||
// the fingerprint for the local repo's signing key
|
||||
LocalRepoKeyStore localRepoKeyStore = LocalRepoKeyStore.get(context);
|
||||
Certificate localCert = localRepoKeyStore.getCertificate();
|
||||
FDroidApp.repo.fingerprint = Utils.calcFingerprint(localCert);
|
||||
@ -114,8 +114,6 @@ public class WifiStateChangeService extends Service {
|
||||
} catch (LocalRepoKeyStore.InitException e) {
|
||||
Log.e(TAG, "Unable to configure a fingerprint or HTTPS for the local repo: " + e.getMessage());
|
||||
Log.e(TAG, Log.getStackTraceString(e));
|
||||
}
|
||||
|
||||
} catch (InterruptedException e) {
|
||||
Log.e(TAG, Log.getStackTraceString(e));
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user