Skip to content

Commit

Permalink
Clean code
Browse files Browse the repository at this point in the history
  • Loading branch information
johanah29 committed Feb 5, 2025
1 parent 9bcc2dd commit 456c914
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,12 @@
import jakarta.mail.Multipart;
import jakarta.mail.internet.*;
import jakarta.mail.util.ByteArrayDataSource;

import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;

import org.bouncycastle.openpgp.PGPPublicKey;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
Expand Down Expand Up @@ -222,6 +224,5 @@ private void sendEmailWithRetry(Execution execution, MimeMessage mimeMessage)
}
}
throw new InterruptedException("Failed to send mail after 3 attempts");
// execution.addTrace(traceError("Failed to send mail after 3 attempts"));
}
}

0 comments on commit 456c914

Please sign in to comment.