SSR: cleanup - flip conditional (IJ-CR-118269)

GitOrigin-RevId: 64cb917a353559ec563fec231b06f2436f5b0557
This commit is contained in:
Bas Leijdekkers
2023-10-31 23:25:36 +00:00
committed by intellij-monorepo-bot
parent cac6f9b848
commit 39afd351c6
@@ -61,7 +61,7 @@ public final class Scopes {
case PROJECT -> GlobalSearchScope.projectScope(project);
case MODULE -> {
final Module module = ModuleManager.getInstance(project).findModuleByName(descriptor);
yield (module != null) ? GlobalSearchScope.moduleScope(module) : null;
yield (module == null) ? null : GlobalSearchScope.moduleScope(module);
}
case DIRECTORY -> {
final boolean recursive = StringUtil.startsWithChar(descriptor, '*');