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-net.git


The following commit(s) were added to refs/heads/master by this push:
     new cb8dd68c Inline single use local variable
cb8dd68c is described below

commit cb8dd68ca4aef9c5206466490e733200ae7fc52d
Author: Gary Gregory <garydgreg...@gmail.com>
AuthorDate: Sat May 4 18:03:27 2024 -0400

    Inline single use local variable
---
 .../java/org/apache/commons/net/ftp/parser/FTPTimestampParserImpl.java | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git 
a/src/main/java/org/apache/commons/net/ftp/parser/FTPTimestampParserImpl.java 
b/src/main/java/org/apache/commons/net/ftp/parser/FTPTimestampParserImpl.java
index 69d1f286..69d4969e 100644
--- 
a/src/main/java/org/apache/commons/net/ftp/parser/FTPTimestampParserImpl.java
+++ 
b/src/main/java/org/apache/commons/net/ftp/parser/FTPTimestampParserImpl.java
@@ -241,8 +241,7 @@ public class FTPTimestampParserImpl implements 
FTPTimestampParser, Configurable
      */
     @Override
     public Calendar parseTimestamp(final String timestampStr) throws 
ParseException {
-        final Calendar now = Calendar.getInstance();
-        return parseTimestamp(timestampStr, now);
+        return parseTimestamp(timestampStr, Calendar.getInstance());
     }
 
     /**

Reply via email to