1
0
Fork 0
mirror of https://github.com/vanitasvitae/Smack.git synced 2024-06-15 16:14:49 +02:00

Simplfy code in FileBasedOpenPgpMetadataStore

This commit is contained in:
Florian Schmaus 2018-08-17 12:22:58 +02:00
parent 97feeb2e2c
commit fe9d2daed2

View file

@ -123,11 +123,10 @@ 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;
} }