mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
remove redundant check
This commit is contained in:
@@ -23,7 +23,6 @@ import com.intellij.openapi.actionSystem.AnAction;
|
||||
import com.intellij.openapi.actionSystem.AnActionEvent;
|
||||
import com.intellij.openapi.application.ApplicationManager;
|
||||
import com.intellij.openapi.editor.Editor;
|
||||
import com.intellij.openapi.project.DumbService;
|
||||
import com.intellij.openapi.util.Computable;
|
||||
import com.intellij.psi.PsiDocumentManager;
|
||||
import com.intellij.psi.PsiFile;
|
||||
@@ -67,7 +66,6 @@ public class ApplyIntentionAction extends AnAction {
|
||||
|
||||
@Nullable
|
||||
public static ApplyIntentionAction[] getAvailableIntentions(final Editor editor, final PsiFile file) {
|
||||
if (DumbService.isDumb(file.getProject())) return null;
|
||||
final ShowIntentionsPass.IntentionsInfo info = new ShowIntentionsPass.IntentionsInfo();
|
||||
ApplicationManager.getApplication().runReadAction(() -> ShowIntentionsPass.getActionsToShow(editor, file, info, -1));
|
||||
if (info.isEmpty()) return null;
|
||||
|
||||
Reference in New Issue
Block a user