From f7b073f3eb88e4e82d5ec10a91d2bf6b442c03c6 Mon Sep 17 00:00:00 2001 From: Jacky Date: Fri, 4 Mar 2022 23:09:54 +0800 Subject: [PATCH] =?UTF-8?q?[MNG-7445]=C2=A0-=20Refactoring,=20remove=20the?= =?UTF-8?q?=20useless=20line=20=20=20Contribution=20by=20JakcyHu=20Gakiii?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Karl Heinz Marbaise --- .../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 d3ffd925ec..5b63317bf5 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(); } }