mirror of
https://github.com/vanitasvitae/Smack.git
synced 2024-11-22 20:12:07 +01:00
Simplfy code in FileBasedOpenPgpMetadataStore
This commit is contained in:
parent
97feeb2e2c
commit
fe9d2daed2
1 changed files with 3 additions and 4 deletions
|
@ -123,10 +123,9 @@ public class FileBasedOpenPgpMetadataStore extends AbstractOpenPgpMetadataStore
|
||||||
if (data == null || data.isEmpty()) {
|
if (data == null || data.isEmpty()) {
|
||||||
if (!destination.exists()) {
|
if (!destination.exists()) {
|
||||||
return;
|
return;
|
||||||
} else {
|
}
|
||||||
if (!destination.delete()) {
|
if (!destination.delete()) {
|
||||||
throw new IOException("Cannot delete file " + destination.getAbsolutePath());
|
throw new IOException("Cannot delete file " + destination.getAbsolutePath());
|
||||||
}
|
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue