xml / react: fix test, cleanup

GitOrigin-RevId: da078726a82b414be5fb5b43d5108957370aca40
This commit is contained in:
anstarovoyt
2019-07-02 06:52:16 +03:00
committed by intellij-monorepo-bot
parent a85f5c611d
commit c6c0858953
@@ -124,11 +124,7 @@ public class HtmlNSDescriptorImpl implements XmlNSDescriptor, DumbAware, XmlNSTy
@Override
@NotNull
public XmlElementDescriptor[] getRootElementsDescriptors(@Nullable final XmlDocument document) {
if (myDelegate == null) return XmlElementDescriptor.EMPTY_ARRAY;
return document == null
? buildDeclarationMap().values().toArray(XmlElementDescriptor.EMPTY_ARRAY)
: myDelegate.getRootElementsDescriptors(document);
return myDelegate == null ? XmlElementDescriptor.EMPTY_ARRAY : myDelegate.getRootElementsDescriptors(document);
}
@Override