mirror of
https://github.com/syncthing/syncthing-android.git
synced 2025-01-10 20:15:54 +00:00
Remove catch-all statement.
This commit is contained in:
parent
026f508b18
commit
299c901086
1 changed files with 11 additions and 16 deletions
|
@ -249,7 +249,6 @@ public class SyncthingService extends Service {
|
||||||
};
|
};
|
||||||
|
|
||||||
if (new File(getApplicationInfo().dataDir, PUBLIC_KEY_FILE).exists()) {
|
if (new File(getApplicationInfo().dataDir, PUBLIC_KEY_FILE).exists()) {
|
||||||
try {
|
|
||||||
File publicKey = new File(getApplicationInfo().dataDir, PUBLIC_KEY_FILE);
|
File publicKey = new File(getApplicationInfo().dataDir, PUBLIC_KEY_FILE);
|
||||||
publicKey.renameTo(new File(getFilesDir(), PUBLIC_KEY_FILE));
|
publicKey.renameTo(new File(getFilesDir(), PUBLIC_KEY_FILE));
|
||||||
File privateKey = new File(getApplicationInfo().dataDir, PRIVATE_KEY_FILE);
|
File privateKey = new File(getApplicationInfo().dataDir, PRIVATE_KEY_FILE);
|
||||||
|
@ -265,10 +264,6 @@ public class SyncthingService extends Service {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
catch (Exception e) {
|
|
||||||
Log.e(TAG, "Failed to move config files", e);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in a new issue