Unchecked attachment file delete

This commit is contained in:
M66B 2019-07-30 14:45:40 +02:00
parent 928119b4e9
commit d9dd78e3a7
1 changed files with 1 additions and 2 deletions

View File

@ -196,8 +196,7 @@ public class AdapterAttachment extends RecyclerView.Adapter<AdapterAttachment.Vi
db.endTransaction();
}
if (!attachment.getFile(context).delete())
throw new FileNotFoundException(attachment.getFile(context).toString());
attachment.getFile(context).delete();
return null;
}