revert accidentally pushed code

GitOrigin-RevId: 51ac522fbe562cdac179abeb8b304ccefbe1a67a
This commit is contained in:
Dmitry Batkovich
2021-09-02 09:55:49 +03:00
committed by intellij-monorepo-bot
parent d9c8947360
commit 2b38117ed5

View File

@@ -182,7 +182,7 @@ public final class PythonLanguageLevelPusher implements FilePropertyPusher<Strin
DataInputOutputUtil.writeINT(oStream, level.ordinal());
}
if (oldLanguageLevel != null && (!areLanguageLevelsCompatible(oldLanguageLevel, level) || !ProjectFileIndex.getInstance(project).isInContent(fileOrDir))) {
if (!areLanguageLevelsCompatible(oldLanguageLevel, level) || !ProjectFileIndex.getInstance(project).isInContent(fileOrDir)) {
PushedFilePropertiesUpdater.getInstance(project).filePropertiesChanged(fileOrDir, PythonLanguageLevelPusher::isPythonFile);
}
for (VirtualFile child : fileOrDir.getChildren()) {