This is an automated email from the ASF dual-hosted git repository.
ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-email.git
The following commit(s) were added to refs/heads/master by this push:
new d88cf21 Inline single-use local variable
d88cf21 is described below
commit d88cf21705263e5d3826ddb6c8524b3edc5f9f05
Author: Gary Gregory <[email protected]>
AuthorDate: Fri Jul 7 00:11:10 2023 -0400
Inline single-use local variable
---
src/main/java/org/apache/commons/mail/util/MimeMessageParser.java | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/src/main/java/org/apache/commons/mail/util/MimeMessageParser.java
b/src/main/java/org/apache/commons/mail/util/MimeMessageParser.java
index e29269e..cc81c22 100644
--- a/src/main/java/org/apache/commons/mail/util/MimeMessageParser.java
+++ b/src/main/java/org/apache/commons/mail/util/MimeMessageParser.java
@@ -376,8 +376,7 @@ public class MimeMessageParser
*/
public DataSource findAttachmentByCid(final String cid)
{
- final DataSource dataSource = cidMap.get(cid);
- return dataSource;
+ return cidMap.get(cid);
}
/**