ShredImpl.isValid: don't check the same PSI element validity twice (IDEA-169876)

This commit is contained in:
peter
2017-04-10 14:01:11 +02:00
parent 14bd8f50a1
commit 63481734f6
@@ -99,8 +99,7 @@ class ShredImpl implements PsiLanguageInjectionHost.Shred {
@Override
public boolean isValid() {
PsiLanguageInjectionHost host = getHost();
return getHostRangeMarker() != null && host != null && host.isValid();
return getHostRangeMarker() != null && getHost() != null;
}
@Override