Skip to content

Commit faf4e27

Browse files
committed
Remove redundant test
1 parent c11ac8d commit faf4e27

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tls/src/main/java/org/bouncycastle/jsse/provider/JsseUtils.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -939,7 +939,7 @@ private static String stripOuterChars(String s, char openChar, char closeChar)
939939

940940
static String stripTrailingDot(String s)
941941
{
942-
if (s != null && s.endsWith("."))
942+
if (s != null)
943943
{
944944
int sLast = s.length() - 1;
945945
if (sLast >= 0 && s.charAt(sLast) == '.')

0 commit comments

Comments
 (0)