mirror of
https://github.com/GitJournal/GitJournal.git
synced 2025-07-25 03:31:44 +08:00
Android: Always regenerate the ssh key when calling generateSSHKeys
If it already existed we would give an error about it already existing, but the user would have no recourse of action, apart from uninstall and reinstalling the app.
This commit is contained in:
@ -31,9 +31,7 @@ public class GenerateSSHKeysTask extends AsyncTask<String, Void, Void> {
|
||||
|
||||
File privateKeyFile = new File(privateKeyPath);
|
||||
if (privateKeyFile.exists()) {
|
||||
Log.d(TAG, "Private key already exists");
|
||||
result.error("FAILED", "Private key already exists", null);
|
||||
return null;
|
||||
Log.d(TAG, "Private key already exists. Overwriting");
|
||||
}
|
||||
|
||||
Git git = new Git();
|
||||
|
Reference in New Issue
Block a user