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/30 10:40:31 UTC
(maven-gpg-plugin) branch master updated: Remove guaranteed true null check (#289)
This is an automated email from the ASF dual-hosted git repository.
elharo pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/maven-gpg-plugin.git
The following commit(s) were added to refs/heads/master by this push:
new 86f6b9d Remove guaranteed true null check (#289)
86f6b9d is described below
commit 86f6b9d2423f5a2b4442e2cf05ba82993c7690b9
Author: Elliotte Rusty Harold <el...@users.noreply.github.com>
AuthorDate: Mon Jun 30 10:40:26 2025 +0000
Remove guaranteed true null check (#289)
---
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 {