From 7cbd2d9c89f6ab39dd4757ada9ee7d04547bf5da Mon Sep 17 00:00:00 2001 From: sbuisson Date: Tue, 3 Apr 2018 01:22:18 +0200 Subject: [PATCH] brace --- pitest-maven/src/main/java/org/pitest/maven/ScmTestMojo.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pitest-maven/src/main/java/org/pitest/maven/ScmTestMojo.java b/pitest-maven/src/main/java/org/pitest/maven/ScmTestMojo.java index b58b17ad1..5b5280bc7 100644 --- a/pitest-maven/src/main/java/org/pitest/maven/ScmTestMojo.java +++ b/pitest-maven/src/main/java/org/pitest/maven/ScmTestMojo.java @@ -134,8 +134,9 @@ protected Optional analyse() throws MojoExecutionException { private File findScmRootDir() { MavenProject rootProject = this.project; - while (rootProject.hasParent() && rootProject.getParent().getBasedir() != null) + while (rootProject.hasParent() && rootProject.getParent().getBasedir() != null) { rootProject = rootProject.getParent(); + } return rootProject.getBasedir(); }