Skip to content

Commit

Permalink
Issue #331 - Fix issue based on codacy
Browse files Browse the repository at this point in the history
  • Loading branch information
boretti committed May 30, 2020
1 parent bd0aaed commit 6e84076
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .bettercodehub.yml
@@ -1,4 +1,4 @@
component_depth: 8
component_depth: 9
languages:
- java
exclude:
Expand Down
Expand Up @@ -71,7 +71,7 @@ public static boolean isWeakAllowed(ProvidesMatchersAnnotatedElementMirror targe
public static Collection<Supplier<DSLMethod>> generateParentValueDSLStarter(
ProvidesMatchersAnnotatedElementMirror target, boolean hasSuper) {
if (hasSuper) {
return Arrays.asList(() -> target.getParentMirror()
return asList(() -> target.getParentMirror()
.map(parentMirror -> generateWithSameValueWithParentMatcherAndMayIgnore(target, true, true))
.orElseGet(() -> {
if (isWeakAllowed(target)) {
Expand Down

0 comments on commit 6e84076

Please sign in to comment.