mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
ShredImpl.isValid: don't check the same PSI element validity twice (IDEA-169876)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user