Fix tmp file deletion bug

This commit is contained in:
ghubstan 2020-12-28 14:30:07 -03:00
parent 1f99192a31
commit bcc7216c9e
No known key found for this signature in database
GPG Key ID: E35592D6800A861E

View File

@ -73,6 +73,7 @@ class CorePaymentAccountsService {
String getPaymentAccountFormAsString(String paymentMethodId) {
File jsonForm = getPaymentAccountForm(paymentMethodId);
jsonForm.deleteOnExit(); // If just asking for a string, delete the form file.
return paymentAccountForm.toJsonString(jsonForm);
}