You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by kh...@apache.org on 2022/04/01 19:51:50 UTC

[maven] branch MNG-7445 created (now cb32760)

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

khmarbaise pushed a change to branch MNG-7445
in repository https://gitbox.apache.org/repos/asf/maven.git.


      at cb32760  [MNG-7445] - Refactoring, remove the useless line   Contribution by JakcyHu Gakiii

This branch includes the following new commits:

     new cb32760  [MNG-7445] - Refactoring, remove the useless line   Contribution by JakcyHu Gakiii

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


[maven] 01/01: [MNG-7445] - Refactoring, remove the useless line Contribution by JakcyHu Gakiii

Posted by kh...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

khmarbaise pushed a commit to branch MNG-7445
in repository https://gitbox.apache.org/repos/asf/maven.git

commit cb327607bcc2b1d9e138b9225287ede36bd95526
Author: Jacky <h1...@gmail.com>
AuthorDate: Fri Mar 4 23:09:54 2022 +0800

    [MNG-7445] - Refactoring, remove the useless line
      Contribution by JakcyHu Gakiii
    
    Signed-off-by: Karl Heinz Marbaise <kh...@apache.org>
---
 .../java/org/apache/maven/settings/DefaultMavenSettingsBuilder.java | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/maven-core/src/main/java/org/apache/maven/settings/DefaultMavenSettingsBuilder.java b/maven-core/src/main/java/org/apache/maven/settings/DefaultMavenSettingsBuilder.java
index 06fbb5d..2f2c407 100644
--- a/maven-core/src/main/java/org/apache/maven/settings/DefaultMavenSettingsBuilder.java
+++ b/maven-core/src/main/java/org/apache/maven/settings/DefaultMavenSettingsBuilder.java
@@ -155,12 +155,8 @@ public class DefaultMavenSettingsBuilder
             // ---------------------------------------------------------------------------------
             // path = path.replaceAll( "//", "/" );
 
-            return new File( path ).getAbsoluteFile();
-        }
-        else
-        {
-            return new File( path ).getAbsoluteFile();
         }
+        return new File( path ).getAbsoluteFile();
     }
 
 }