mirror of https://github.com/M66B/FairEmail.git
Unchecked attachment file delete
This commit is contained in:
parent
928119b4e9
commit
d9dd78e3a7
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue