[MNG-6147] MetadataResolutionResult#getGraph() contains duplicate if clause
Project: http://git-wip-us.apache.org/repos/asf/maven/repo Commit: http://git-wip-us.apache.org/repos/asf/maven/commit/f53f1547 Tree: http://git-wip-us.apache.org/repos/asf/maven/tree/f53f1547 Diff: http://git-wip-us.apache.org/repos/asf/maven/diff/f53f1547 Branch: refs/heads/MNG-2199-IT Commit: f53f1547a16fb0f7e288de5c4684c599652ee601 Parents: 920f10a Author: Michael Osipov <micha...@apache.org> Authored: Sat Jan 28 15:26:52 2017 +0100 Committer: Michael Osipov <micha...@apache.org> Committed: Sat Jan 28 17:09:30 2017 +0100 ---------------------------------------------------------------------- .../maven/repository/metadata/MetadataResolutionResult.java | 4 ---- 1 file changed, 4 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/maven/blob/f53f1547/maven-compat/src/main/java/org/apache/maven/repository/metadata/MetadataResolutionResult.java ---------------------------------------------------------------------- diff --git a/maven-compat/src/main/java/org/apache/maven/repository/metadata/MetadataResolutionResult.java b/maven-compat/src/main/java/org/apache/maven/repository/metadata/MetadataResolutionResult.java index 1d9e9c4..814b66c 100644 --- a/maven-compat/src/main/java/org/apache/maven/repository/metadata/MetadataResolutionResult.java +++ b/maven-compat/src/main/java/org/apache/maven/repository/metadata/MetadataResolutionResult.java @@ -119,10 +119,6 @@ public class MetadataResolutionResult { return conflictResolver.resolveConflicts( getGraph(), ArtifactScopeEnum.test ); } - else if ( requestType.equals( MetadataResolutionRequestTypeEnum.classpathRuntime ) ) - { - return conflictResolver.resolveConflicts( getGraph(), ArtifactScopeEnum.test ); - } else if ( requestType.equals( MetadataResolutionRequestTypeEnum.graph ) ) { return getGraph();