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 20:21:18 UTC

[maven] branch maven-3.8.x updated: [MNG-7445] - Refactoring, remove the useless line Contribution by JakcyHu Gakiii

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

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


The following commit(s) were added to refs/heads/maven-3.8.x by this push:
     new 69bde0b  [MNG-7445] - Refactoring, remove the useless line   Contribution by JakcyHu Gakiii
69bde0b is described below

commit 69bde0b901f983117032f674a3701d6a6eb4b716
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 d3ffd92..5b63317 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
@@ -147,12 +147,8 @@ public class DefaultMavenSettingsBuilder
             // ---------------------------------------------------------------------------------
             // path = path.replaceAll( "//", "/" );
 
-            return new File( path ).getAbsoluteFile();
-        }
-        else
-        {
-            return new File( path ).getAbsoluteFile();
         }
+        return new File( path ).getAbsoluteFile();
     }
 
 }