You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by el...@apache.org on 2025/06/29 12:22:53 UTC

(maven-gpg-plugin) 01/01: Remove guaranteed true null check

This is an automated email from the ASF dual-hosted git repository.

elharo pushed a commit to branch null
in repository https://gitbox.apache.org/repos/asf/maven-gpg-plugin.git

commit d31639224922768885c42920dead21c3f9ff3365
Author: Elliotte Rusty Harold <el...@ibiblio.org>
AuthorDate: Sun Jun 29 08:22:42 2025 -0400

    Remove guaranteed true null check
---
 src/main/java/org/apache/maven/plugins/gpg/BcSigner.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/main/java/org/apache/maven/plugins/gpg/BcSigner.java b/src/main/java/org/apache/maven/plugins/gpg/BcSigner.java
index d41eb11..6de774f 100644
--- a/src/main/java/org/apache/maven/plugins/gpg/BcSigner.java
+++ b/src/main/java/org/apache/maven/plugins/gpg/BcSigner.java
@@ -170,7 +170,7 @@ public class BcSigner extends AbstractGpgSigner {
                 return null;
             }
             List<String> socketLocations = Arrays.stream(agentSocketLocations.split(","))
-                    .filter(s -> s != null && !s.isEmpty())
+                    .filter(s -> !s.isEmpty())
                     .collect(Collectors.toList());
             for (String socketLocation : socketLocations) {
                 try {