Skip to content

Commit

Permalink
fix: Revert "fix(maven): Use documented default value for `relativePa…
Browse files Browse the repository at this point in the history
…th` (#4182)"

This reverts commit 3d36f28.
  • Loading branch information
rarkins committed Jul 28, 2019
1 parent 8e13f59 commit 0b05e45
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
5 changes: 2 additions & 3 deletions lib/manager/maven/extract.ts
Original file line number Diff line number Diff line change
Expand Up @@ -179,9 +179,8 @@ export function extractPackage(rawContent: string, packageFile: string = null) {
});
}

if (packageFile && project.childNamed('parent')) {
const parentPath =
project.valueWithPath('parent.relativePath') || '../pom.xml';
const parentPath = project.valueWithPath('parent.relativePath');
if (parentPath) {
result.parent = resolveParentFile(packageFile, parentPath);
}

Expand Down
1 change: 0 additions & 1 deletion test/manager/maven/__snapshots__/index.spec.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,6 @@ Array [
},
],
"packageFile": "random.pom.xml",
"parent": "../pom.xml",
},
]
`;

0 comments on commit 0b05e45

Please sign in to comment.