[threading] IJPL-229379: Remove useless assertion

In the world with background write action, this is not dangeorus anymore

GitOrigin-RevId: bb74739da902529d41cb6fa2bc17f6efb158b828
This commit is contained in:
Konstantin Nisht
2026-02-03 10:28:34 +00:00
committed by intellij-monorepo-bot
parent fe99cb25fb
commit e9c7d989d4
@@ -313,9 +313,6 @@ public final class ProgressRunner<R> {
if (!EDT.isCurrentThreadEdt()) {
return false;
}
if (isSync && !ApplicationManager.getApplication().isWriteIntentLockAcquired()) {
throw new IllegalStateException("Running sync tasks on pure EDT (w/o IW lock) is dangerous for several reasons.");
}
if (!isSync && isModal) {
throw new IllegalStateException("Running async modal tasks from EDT is impossible: modal implies sync dialog show + polling events");
}