Skip to content

Commit ba99c90

Browse files
654: Code refactoring to fix tests
1 parent 1c8b1ab commit ba99c90

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/com/magento/idea/magento2plugin/stubs/indexes/WebApiTypeIndex.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ public static List<XmlTag> getWebApiRoutes(final Method method) {
149149
final String methodFqn = method.getName();
150150

151151
for (final VirtualFile virtualFile : containingFiles) {
152-
if (!(virtualFile instanceof XmlFile)) {
152+
if (virtualFile.getFileType() != XmlFileType.INSTANCE) {
153153
continue;
154154
}
155155
final XmlFile file = (XmlFile) psiManager.findFile(virtualFile);

0 commit comments

Comments
 (0)