(JBR-8965) PluginPathManager: roll back the unnecessary exists() check before isDirectory()

And do it in the correct place now!

GitOrigin-RevId: bedca81992a5f0029eac848731b046a47386d684
This commit is contained in:
Ivan Migalev
2025-06-17 18:53:08 +00:00
committed by intellij-monorepo-bot
parent f367baf2d6
commit 18f7a1fc14
@@ -74,7 +74,7 @@ public final class PluginPathManager {
private static File findSubRepo(String pluginName) {
for (File subRepo : SubRepoHolder.subRepos) {
File candidate = new File(subRepo, pluginName);
if (candidate.exists() && candidate.isDirectory()) {
if (candidate.isDirectory()) {
return candidate;
}
}