You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by gg...@apache.org on 2023/12/10 19:38:32 UTC
(commons-email) 01/08: Remove redundant null check
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
commit afdf5bb9eea4390f3732c8041d25b2d366b96b13
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Sun Dec 10 14:09:39 2023 -0500
Remove redundant null check
---
src/main/java/org/apache/commons/mail/Email.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/main/java/org/apache/commons/mail/Email.java b/src/main/java/org/apache/commons/mail/Email.java
index 6239663..a410538 100644
--- a/src/main/java/org/apache/commons/mail/Email.java
+++ b/src/main/java/org/apache/commons/mail/Email.java
@@ -1917,7 +1917,7 @@ public abstract class Email
{
throw new IllegalArgumentException("name can not be null or empty");
}
- if (value == null || EmailUtils.isEmpty(value))
+ if (EmailUtils.isEmpty(value))
{
throw new IllegalArgumentException("value can not be null or empty");
}