[groovy] get rid of duplicate code

This commit is contained in:
Daniil Ovchinnikov
2017-05-03 15:26:35 +03:00
parent 51872983c5
commit 4e55700463
@@ -485,12 +485,7 @@ public class GrCodeReferenceElementImpl extends GrReferenceElementImpl<GrCodeRef
@Override
@NotNull
public GroovyResolveResult[] multiResolve(boolean incompleteCode) {
final ResolveResult[] results = TypeInferenceHelper.getCurrentContext().multiResolve(this, incompleteCode, RESOLVER);
if (results.length == 0) {
return GroovyResolveResult.EMPTY_ARRAY;
}
return (GroovyResolveResult[])results;
return TypeInferenceHelper.getCurrentContext().multiResolve(this, incompleteCode, RESOLVER);
}
@NotNull